From 50432931562ca697a2b88db2bb2f0b1da91fb28a Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Fri, 21 Feb 2014 19:22:32 +0100 Subject: Fix some help strings This fixes some errors and inconsistencies I found reviewing the help strings: * Capitalize help strings * Add missing space between words (in multi-line strings) * Improve wording Change-Id: I2fb31ab4191c330146e31c1a9651115a6657769a --- openstackclient/compute/v2/agent.py | 2 +- openstackclient/compute/v2/server.py | 24 ++++++++++++------------ openstackclient/compute/v2/usage.py | 2 +- 3 files changed, 14 insertions(+), 14 deletions(-) (limited to 'openstackclient/compute/v2') diff --git a/openstackclient/compute/v2/agent.py b/openstackclient/compute/v2/agent.py index b79ebbe7..c8fb6ccc 100644 --- a/openstackclient/compute/v2/agent.py +++ b/openstackclient/compute/v2/agent.py @@ -136,7 +136,7 @@ class SetAgent(show.ShowOne): parser.add_argument( "id", metavar="", - help="ID of the agent build") + help="ID of the agent") parser.add_argument( "version", metavar="", diff --git a/openstackclient/compute/v2/server.py b/openstackclient/compute/v2/server.py index 87f5f689..808741fd 100644 --- a/openstackclient/compute/v2/server.py +++ b/openstackclient/compute/v2/server.py @@ -483,40 +483,40 @@ class ListServer(lister.Lister): parser.add_argument( '--reservation-id', metavar='', - help='only return instances that match the reservation') + help='Only return instances that match the reservation') parser.add_argument( '--ip', metavar='', - help='regular expression to match IP address') + help='Regular expression to match IP addresses') parser.add_argument( '--ip6', metavar='', - help='regular expression to match IPv6 address') + help='Regular expression to match IPv6 addresses') parser.add_argument( '--name', metavar='', - help='regular expression to match name') + help='Regular expression to match names') parser.add_argument( '--status', metavar='', # FIXME(dhellmann): Add choices? - help='search by server status') + help='Search by server status') parser.add_argument( '--flavor', metavar='', - help='search by flavor ID') + help='Search by flavor ID') parser.add_argument( '--image', metavar='', - help='search by image ID') + help='Search by image ID') parser.add_argument( '--host', metavar='', - help='search by hostname') + help='Search by hostname') parser.add_argument( '--instance-name', metavar='', - help='regular expression to match instance name (admin only)') + help='Regular expression to match instance name (admin only)') parser.add_argument( '--all-projects', action='store_true', @@ -526,7 +526,7 @@ class ListServer(lister.Lister): '--long', action='store_true', default=False, - help='Additional fields are listed in output') + help='List additional fields in output') return parser def take_action(self, parsed_args): @@ -1181,14 +1181,14 @@ class SshServer(command.Command): dest='ipv4', action='store_true', default=False, - help='Use only IPv4 addresses only', + help='Use only IPv4 addresses', ) ip_group.add_argument( '-6', dest='ipv6', action='store_true', default=False, - help='Use only IPv6 addresses only', + help='Use only IPv6 addresses', ) type_group = parser.add_mutually_exclusive_group() type_group.add_argument( diff --git a/openstackclient/compute/v2/usage.py b/openstackclient/compute/v2/usage.py index 30835769..1dfe8c0a 100644 --- a/openstackclient/compute/v2/usage.py +++ b/openstackclient/compute/v2/usage.py @@ -35,7 +35,7 @@ class ListUsage(lister.Lister): "--start", metavar="", default=None, - help="Usage range start date ex 2012-01-20" + help="Usage range start date, ex 2012-01-20" " (default: 4 weeks ago)." ) parser.add_argument( -- cgit v1.2.1