[issue15112] argparse: nargs='*' positional argument doesn't accept any items if preceded by an option and another positional
paul j3
report at bugs.python.org
Tue Jul 1 02:14:34 CEST 2014
paul j3 added the comment:
I believe http://bugs.python.org/issue14174 with REMAINDER has its roots in the same issue - parse_args tries to process as many positionals as it can at a time, regardless of what's left in the argument strings.
The fix proposed here depends on the 2nd argument taking 0 strings. REMAINDER, on the other hand, grabs everything that's left, leaving none for the optionals.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15112>
_______________________________________
More information about the Python-bugs-list
mailing list