diff options
| author | kairat_kushaev <kkushaev@mirantis.com> | 2016-01-20 12:01:32 +0300 |
|---|---|---|
| committer | kairat_kushaev <kkushaev@mirantis.com> | 2016-01-20 12:04:29 +0300 |
| commit | 56c27d1cb872936e7177f5ca37b6910e1dcd6b02 (patch) | |
| tree | 9d0dbd594419bad8155c4aa566323f78cfeb818c /glanceclient/v2/shell.py | |
| parent | a3d2cf022583a5d047364bc0617132a84bd8ca1a (diff) | |
| download | python-glanceclient-56c27d1cb872936e7177f5ca37b6910e1dcd6b02.tar.gz | |
Change metavar for location commands in V2
Currently location-add, location-delete and location-update
shows <ID> in help messages as metavar for image id. It may be
not clear to the users so we need to change this to <IMAGE_ID>.
Change-Id: I59c787e449fa34bc792de179993c55f59734b9fe
Closes-Bug: #1535220
Diffstat (limited to 'glanceclient/v2/shell.py')
| -rw-r--r-- | glanceclient/v2/shell.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/glanceclient/v2/shell.py b/glanceclient/v2/shell.py index 09a42e6..821febf 100644 --- a/glanceclient/v2/shell.py +++ b/glanceclient/v2/shell.py @@ -388,7 +388,7 @@ def do_image_tag_delete(gc, args): @utils.arg('--metadata', metavar='<STRING>', default='{}', help=_('Metadata associated with the location. ' 'Must be a valid JSON object (default: %(default)s)')) -@utils.arg('id', metavar='<ID>', +@utils.arg('id', metavar='<IMAGE_ID>', help=_('ID of image to which the location is to be added.')) def do_location_add(gc, args): """Add a location (and related metadata) to an image.""" @@ -403,7 +403,7 @@ def do_location_add(gc, args): @utils.arg('--url', metavar='<URL>', action='append', required=True, help=_('URL of location to remove. May be used multiple times.')) -@utils.arg('id', metavar='<ID>', +@utils.arg('id', metavar='<IMAGE_ID>', help=_('ID of image whose locations are to be removed.')) def do_location_delete(gc, args): """Remove locations (and related metadata) from an image.""" @@ -415,7 +415,7 @@ def do_location_delete(gc, args): @utils.arg('--metadata', metavar='<STRING>', default='{}', help=_('Metadata associated with the location. ' 'Must be a valid JSON object (default: %(default)s)')) -@utils.arg('id', metavar='<ID>', +@utils.arg('id', metavar='<IMAGE_ID>', help=_('ID of image whose location is to be updated.')) def do_location_update(gc, args): """Update metadata of an image's location.""" |
