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

Jeff Knupp report at bugs.python.org
Sun Mar 18 18:11:51 CET 2012


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

I don't know that this is a bug. Rather, the string '--' means different things to argparse and optparse. In argparse, '--' is a psuedo-argument taken to mean "everything after this is a postional argument" and not "stop processing arguments", which is the optparse meaning. In that context it doesn't seem like removing additional '--' is a bug in argparse, since additional '--' would merely be restating the same thing.

----------
nosy: +Jeff.Knupp

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


More information about the Python-bugs-list mailing list