[issue15112] argparse: nargs='*' positional argument doesn't accept any items if preceded by an option and another positional

2014-09-03 Thread leonard gerard
leonard gerard added the comment: In my opinion this is a bug or it should be explicitly stated in the generated usage help string. -- nosy: +leonard.gerard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15112

[issue15112] argparse: nargs='*' positional argument doesn't accept any items if preceded by an option and another positional

2014-09-03 Thread leonard gerard
leonard gerard added the comment: It seems that delaying positional argument parsing after all optional arguments are parsed would be clean and robust. My understanding is that optional arguments aren't ambiguous and should be processed first and removed from the arguments. Then the current