It is unclear what options are actually mandatory for some commands
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance Client |
Fix Released
|
Low
|
Cyril Roelandt |
Bug Description
Some commands (location-add, location-
---
$ glance help location-add
usage: glance location-add --url <URL> [--metadata <STRING>]
Add a location (and related metadata) to an image.
Positional arguments:
<IMAGE_ID> ID of image to which the location is to be added.
Optional arguments:
--url <URL> URL of location to add.
--metadata <STRING> Metadata associated with the location. Must be a valid
--checksum <STRING> md5 checksum of image contents
--hash-algo <STRING> Multihash algorithm
--hash-value <STRING>
---
Looking at the first line of the output, one can understand that "--url <URL>" is mandatory, but the info is easy to overlook. Furthermore, "--url" appears in the list of "optional" arguments.
It would be great to make it perfectly clear that some options are less optional than others.
Changed in python-glanceclient: | |
assignee: | nobody → Cyril Roelandt (cyril-roelandt) |
importance: | Undecided → Low |
Fix proposed to branch: master /review. opendev. org/c/openstack /python- glanceclient/ +/797779
Review: https:/