[docs] [issue9182] document “--” as a way to distinguish option w/ narg='+' from positional argument in argparse

Steven Bethard report at bugs.python.org
Sun Nov 21 16:11:23 CET 2010


Steven Bethard <steven.bethard at gmail.com> added the comment:

Yeah, sorry, those last two should have had arguments after them.

I think we have to stick with the current behavior - otherwise there's no way to do something like -x -A -B, where you want -A and -B to be arguments to -x. (You can get that now with -x -- -A -B.)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9182>
_______________________________________


More information about the docs mailing list