trove help create has positional arguments in incorrect spot
Bug #1243981 reported by
Anita Kuno
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-troveclient |
Fix Released
|
Medium
|
Auston McReynolds |
Bug Description
trove help create shows the positional arguments after the optional arguments. The positional arguments need to be placed before the optional arguments for the command to execute.
usage: trove create [--size <size>]
affects: | trove → python-troveclient |
Changed in python-troveclient: | |
assignee: | nobody → Auston McReynolds (amcrn) |
Changed in python-troveclient: | |
status: | Fix Committed → Fix Released |
importance: | Undecided → Medium |
milestone: | none → python-troveclient-v1 |
To post a comment you must log in.
I think this bug is actually the way argparse handles the optional/positional arguments.
On the surface i do not see a way of fixing this bug. Here is the code in argparse that prints the usage. hg.python. org/cpython/ file/default/ Lib/argparse. py#l314
http://