[issue13922] argparse handling multiple "--" in args improperly

Jeff Knupp report at bugs.python.org
Mon Mar 19 05:52:44 CET 2012


Jeff Knupp <jknupp at gmail.com> added the comment:

Added patch so that only the first '--' is removed by an argparse.PARSE or argparse.REMAINDER argument. Note that, as Steven said, argparse.REMAINDER should be used in the OP's issue (and the added test makes sure all remaining arguments are preserved even if they appear in the parent parser).

----------
keywords: +patch
Added file: http://bugs.python.org/file24936/argparse.patch

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


More information about the Python-bugs-list mailing list