From 0e90f8ef230eebd421175d637d7c9df7d149a155 Mon Sep 17 00:00:00 2001 From: Brian Waldon Date: Mon, 19 Nov 2012 09:08:39 -0800 Subject: [PATCH] Set useful boolean flag metavars The boolean flags --is-protected and --is-public now communicate that they must be set to True or False. Fixes bug 1056501. Change-Id: I23094ea556eb71d6eb977a64c171119738ed792b --- glanceclient/v1/shell.py | 8 ++++---- 1 file 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="", 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="", action='append', default=[], help=("Arbitrary property to associate with image. "