[issue24223] argparse parsing (mingling --option and optional positional argument)

2015-05-21 Thread Bob Alexander
Bob Alexander added the comment: Thanks for the note, Martin. I agree that it's a duplicate. (I had done a brief search for possible dups, but didn't find that one!) Bob On Sun, May 17, 2015 at 8:29 PM, Martin Panter rep...@bugs.python.org wrote: Martin Panter added the comment: I suggest

[issue24223] argparse parsing (mingling --option and optional positional argument)

2015-05-17 Thread Martin Panter
Martin Panter added the comment: I suggest this is a duplicate of Issue 15112. The same problem also happens with nargs=*, and that issue apparently has a patch to handle both cases. For the record, this is the resulting error, and a demo that it works if the option comes before the