diff options
Diffstat (limited to 'openstackclient/image/v1/image.py')
| -rw-r--r-- | openstackclient/image/v1/image.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/openstackclient/image/v1/image.py b/openstackclient/image/v1/image.py index f4944afa..60d61709 100644 --- a/openstackclient/image/v1/image.py +++ b/openstackclient/image/v1/image.py @@ -128,12 +128,13 @@ class CreateImage(command.ShowOne): metavar="<image-url>", help=_("Copy image from the data store (similar to --location)"), ) - parser.add_argument( + source_group = parser.add_mutually_exclusive_group() + source_group.add_argument( "--file", metavar="<file>", help=_("Upload image from local file"), ) - parser.add_argument( + source_group.add_argument( "--volume", metavar="<volume>", help=_("Create image from a volume"), |
