summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-11-19 18:52:55 +0000
committerGerrit Code Review <review@openstack.org>2012-11-19 18:52:55 +0000
commit882c13ab8cb4bd57a61ae3918f4c3ab1e3185a5d (patch)
tree7b0960e0e0bcb393926885ccd6f772508a9cbda4
parent0192e14d5652500185aa9410fe6e39cd25c1ec6b (diff)
parent0e90f8ef230eebd421175d637d7c9df7d149a155 (diff)
downloadpython-glanceclient-882c13ab8cb4bd57a61ae3918f4c3ab1e3185a5d.tar.gz
Merge "Set useful boolean flag metavars"
-rw-r--r--glanceclient/v1/shell.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/glanceclient/v1/shell.py b/glanceclient/v1/shell.py
index 877d245..770bcc3 100644
--- a/glanceclient/v1/shell.py
+++ b/glanceclient/v1/shell.py
@@ -159,9 +159,9 @@ def do_image_download(gc, args):
# to use --is-public
@utils.arg('--public', action='store_true', default=False,
help=argparse.SUPPRESS)
-@utils.arg('--is-public', type=utils.string_to_bool,
+@utils.arg('--is-public', type=utils.string_to_bool, metavar='[True|False]',
help='Make image accessible to the public.')
-@utils.arg('--is-protected', type=utils.string_to_bool,
+@utils.arg('--is-protected', type=utils.string_to_bool, metavar='[True|False]',
help='Prevent image from being deleted.')
@utils.arg('--property', metavar="<key=value>", action='append', default=[],
help=("Arbitrary property to associate with image. "
@@ -222,9 +222,9 @@ def do_image_create(gc, args):
help=('Similar to \'--location\' in usage, but this indicates that'
' the Glance server should immediately copy the data and'
' store it in its configured image store.'))
-@utils.arg('--is-public', type=utils.string_to_bool,
+@utils.arg('--is-public', type=utils.string_to_bool, metavar='[True|False]',
help='Make image accessible to the public.')
-@utils.arg('--is-protected', type=utils.string_to_bool,
+@utils.arg('--is-protected', type=utils.string_to_bool, metavar='[True|False]',
help='Prevent image from being deleted.')
@utils.arg('--property', metavar="<key=value>", action='append', default=[],
help=("Arbitrary property to associate with image. "