[issue14364] Argparse incorrectly handles '--'

R. David Murray report at bugs.python.org
Sun Mar 18 15:45:01 CET 2012


R. David Murray <rdmurray at bitdance.com> added the comment:

It does look like there's anomalous behavior here of some sort, but I'd expect --test=-- to result in test="--", myself, rather than an error.  My intuition is that '--' would need to be preceded by a space to function as the 'end of options' marker.  Because of that, I've never tried the above scenario with a unix command, so maybe my intuition is wrong :)

Just for reference (the code paths may be different), there is another open issue about -- parsing, issue 13922.

----------
components: +Library (Lib)
nosy: +bethard, r.david.murray
stage:  -> needs patch
versions: +Python 3.2, Python 3.3 -Python 3.1

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


More information about the Python-bugs-list mailing list