diff --git a/doc/source/cli/command-objects/versions.rst b/doc/source/cli/command-objects/versions.rst index 6742565265..0aa9a1b785 100644 --- a/doc/source/cli/command-objects/versions.rst +++ b/doc/source/cli/command-objects/versions.rst @@ -17,6 +17,7 @@ Show service versions: [--interface ] [--region-name ] [--service ] + [--status ] .. option:: --all-interfaces @@ -30,7 +31,7 @@ Show service versions: .. option:: --region-name - Limit results to only those from region-name + Limit results to only those from a given region. .. option:: --service @@ -38,4 +39,13 @@ Show service versions: an exact match to what is in the catalog or a known official value or alias from `service-types-authority`_. +.. option:: --status + + Limit results to only those in the given state. Valid values are: + + - SUPPORTED + - CURRENT + - DEPRECATED + - EXPERIMENTAL + .. _service-types-authority: https://service-types.openstack.org/ diff --git a/openstackclient/common/versions.py b/openstackclient/common/versions.py index 3c267bfe0a..e6781bc66f 100644 --- a/openstackclient/common/versions.py +++ b/openstackclient/common/versions.py @@ -45,12 +45,12 @@ class ShowVersions(command.Lister): ) parser.add_argument( '--service', - metavar='', + metavar='', help=_('Show versions for a specific service.'), ) parser.add_argument( '--status', - metavar='', + metavar='', help=_('Show versions for a specific status.' ' [Valid values are SUPPORTED, CURRENT,' ' DEPRECATED, EXPERIMENTAL]'),