From 91ff271e4c8bf4e51aab1b232ba5c2451032b01f Mon Sep 17 00:00:00 2001 From: Ruby Loo Date: Tue, 16 Sep 2014 14:40:27 +0000 Subject: [PATCH] Add defaults to the CLI help strings This modifies the help strings for timeout, os-service-type, and os-endpoint-type arguments, to include the default values used. Change-Id: I6bc9c243654b74550c60caf7fdb40e18addb3cd4 --- ironicclient/shell.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ironicclient/shell.py b/ironicclient/shell.py index 2815a2329..195867932 100644 --- a/ironicclient/shell.py +++ b/ironicclient/shell.py @@ -93,7 +93,8 @@ class IronicShell(object): parser.add_argument('--timeout', default=600, - help='Number of seconds to wait for a response') + help='Number of seconds to wait for a response; ' + 'defaults to 600') parser.add_argument('--os-username', default=cliutils.env('OS_USERNAME'), @@ -162,14 +163,16 @@ class IronicShell(object): parser.add_argument('--os-service-type', default=cliutils.env('OS_SERVICE_TYPE'), - help='Defaults to env[OS_SERVICE_TYPE]') + help='Defaults to env[OS_SERVICE_TYPE] or ' + '"baremetal"') parser.add_argument('--os_service_type', help=argparse.SUPPRESS) parser.add_argument('--os-endpoint-type', default=cliutils.env('OS_ENDPOINT_TYPE'), - help='Defaults to env[OS_ENDPOINT_TYPE]') + help='Defaults to env[OS_ENDPOINT_TYPE] or ' + '"publicURL"') parser.add_argument('--os_endpoint_type', help=argparse.SUPPRESS)