Merge "fix endpoint show help"

This commit is contained in:
Jenkins 2016-05-26 22:10:23 +00:00 committed by Gerrit Code Review
commit 9da02d14ea
2 changed files with 6 additions and 5 deletions

View File

@ -188,9 +188,9 @@ Display endpoint details
.. code:: bash .. code:: bash
os endpoint show os endpoint show
<endpoint-id> <endpoint>
.. _endpoint_show-endpoint: .. _endpoint_show-endpoint:
.. describe:: <endpoint-id> .. describe:: <endpoint>
Endpoint ID to display Endpoint to display (endpoint ID, service ID, service name, service type)

View File

@ -129,8 +129,9 @@ class ShowEndpoint(command.ShowOne):
parser = super(ShowEndpoint, self).get_parser(prog_name) parser = super(ShowEndpoint, self).get_parser(prog_name)
parser.add_argument( parser.add_argument(
'endpoint_or_service', 'endpoint_or_service',
metavar='<endpoint-id>', metavar='<endpoint>',
help=_('Endpoint ID to display'), help=_('Endpoint to display (endpoint ID, service ID,'
' service name, service type)'),
) )
return parser return parser