$ cinder create --snapshot e23dc0a3-de01-4350-b6b6-b26f48a10c85 1
usage: cinder create [--snapshot-id <snapshot-id>]
[--source-volid <source-volid>] [--image-id <image-id>]
[--display-name <display-name>]
[--display-description <display-description>]
[--volume-type <volume-type>]
[--availability-zone <availability-zone>]
[--metadata [<key=value> [<key=value> ...]]]
<size>
error: ambiguous option: --snapshot could match --snapshot-id, --snapshot_id
Try 'cinder help create' for more information.
These two options are the same argument, just with different spellings. Can we set argparse to "hide" the second option, snapshot_id, so that it matches more sensibly?
Hi Eric, I've tried to figuring out how to fix this behaviour, but unfortunately I couldn't.
Do we want to avoid that argparse match the second parameter (snapshot_id) when it receives "snapshot"? or hide that parameter in the error message?
Txs!
alejandro