summaryrefslogtreecommitdiff
path: root/openstackclient/compute
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-04-04 12:32:55 +0000
committerGerrit Code Review <review@openstack.org>2017-04-04 12:32:55 +0000
commitc7e7f2b7303ad55befb9b42cada2bbe336a4cf0e (patch)
treeababb689784414c056107cfe808a084c5b4b7187 /openstackclient/compute
parent8a1f4b6592a91ed3b2cd65d6fb0217afa1cf5e8d (diff)
parent1686dc54f09b6e77b1de3abc708c297710987a04 (diff)
downloadpython-openstackclient-c7e7f2b7303ad55befb9b42cada2bbe336a4cf0e.tar.gz
Merge "Help/docs cleanups: marker, limit, ip-address metavars"
Diffstat (limited to 'openstackclient/compute')
-rw-r--r--openstackclient/compute/v2/flavor.py4
-rw-r--r--openstackclient/compute/v2/server.py45
2 files changed, 24 insertions, 25 deletions
diff --git a/openstackclient/compute/v2/flavor.py b/openstackclient/compute/v2/flavor.py
index 009c9bd1..bf9921b7 100644
--- a/openstackclient/compute/v2/flavor.py
+++ b/openstackclient/compute/v2/flavor.py
@@ -251,13 +251,13 @@ class ListFlavor(command.Lister):
)
parser.add_argument(
'--marker',
- metavar="<marker>",
+ metavar="<flavor-id>",
help=_("The last flavor ID of the previous page")
)
parser.add_argument(
'--limit',
type=int,
- metavar="<limit>",
+ metavar="<num-flavors>",
help=_("Maximum number of flavors to display")
)
return parser
diff --git a/openstackclient/compute/v2/server.py b/openstackclient/compute/v2/server.py
index 13c4c2d8..edb06603 100644
--- a/openstackclient/compute/v2/server.py
+++ b/openstackclient/compute/v2/server.py
@@ -197,13 +197,14 @@ class AddFixedIP(command.Command):
parser.add_argument(
"server",
metavar="<server>",
- help=_("Server (name or ID) to receive the fixed IP address"),
+ help=_("Server to receive the fixed IP address (name or ID)"),
)
parser.add_argument(
"network",
metavar="<network>",
- help=_("Network (name or ID) to allocate "
- "the fixed IP address from"),
+ help=_(
+ "Network to allocate the fixed IP address from (name or ID)"
+ ),
)
return parser
@@ -227,17 +228,16 @@ class AddFloatingIP(command.Command):
parser.add_argument(
"server",
metavar="<server>",
- help=_("Server (name or ID) to receive the floating IP address"),
+ help=_("Server to receive the floating IP address (name or ID)"),
)
parser.add_argument(
"ip_address",
metavar="<ip-address>",
- help=_("Floating IP address (IP address only) to assign "
- "to server"),
+ help=_("Floating IP address to assign to server (IP only)"),
)
parser.add_argument(
"--fixed-ip-address",
- metavar="<fixed-ip-address>",
+ metavar="<ip-address>",
help=_("Fixed IP address to associate with this floating IP "
"address"),
)
@@ -853,21 +853,21 @@ class ListServer(command.Lister):
)
parser.add_argument(
'--marker',
- metavar='<marker>',
+ metavar='<server>',
default=None,
- help=_('The last server (name or ID) of the previous page. Display'
- ' list of servers after marker. Display all servers if not'
- ' specified.')
+ help=_('The last server of the previous page. Display '
+ 'list of servers after marker. Display all servers if not '
+ 'specified. (name or ID)')
)
parser.add_argument(
'--limit',
- metavar='<limit>',
+ metavar='<num-servers>',
type=int,
default=None,
- help=_("Maximum number of servers to display. If limit equals -1,"
- " all servers will be displayed. If limit is greater than"
- " 'osapi_max_limit' option of Nova API,"
- " 'osapi_max_limit' will be used instead."),
+ help=_("Maximum number of servers to display. If limit equals -1, "
+ "all servers will be displayed. If limit is greater than "
+ "'osapi_max_limit' option of Nova API, "
+ "'osapi_max_limit' will be used instead."),
)
parser.add_argument(
'--deleted',
@@ -1328,13 +1328,12 @@ class RemoveFixedIP(command.Command):
parser.add_argument(
"server",
metavar="<server>",
- help=_("Server (name or ID) to remove the fixed IP address from"),
+ help=_("Server to remove the fixed IP address from (name or ID)"),
)
parser.add_argument(
"ip_address",
metavar="<ip-address>",
- help=_("Fixed IP address (IP address only) to remove from the "
- "server"),
+ help=_("Fixed IP address to remove from the server (IP only)"),
)
return parser
@@ -1355,14 +1354,14 @@ class RemoveFloatingIP(command.Command):
parser.add_argument(
"server",
metavar="<server>",
- help=_("Server (name or ID) to remove the "
- "floating IP address from"),
+ help=_(
+ "Server to remove the floating IP address from (name or ID)"
+ ),
)
parser.add_argument(
"ip_address",
metavar="<ip-address>",
- help=_("Floating IP address (IP address only) "
- "to remove from server"),
+ help=_("Floating IP address to remove from server (IP only)"),
)
return parser