[issue14191] argparse: nargs='*' doesn't get out-of-order positional parameters
report at bugs.python.org
Tue Mar 6 10:34:26 CET 2012
Steven Bethard <steven.bethard at gmail.com> added the comment:
This behavior is intentional - positional arguments must be sequential, not broken up with optional (flag) arguments between. So this is a documentation bug.
Allowing positional arguments to be broken up with optional (flag) arguments between them would be a new feature. It would also break many current parsers, so it couldn't be turned on by default. A new constructor parameter or method or something would have to be added to ArgumentParser. Patches welcome.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list