Message info From:R. David Murray Subject:[issue14364] Argparse incorrectly handles \'--\' Date:Sun, 18 Mar 2012 14:45:01 +0000

R. David Murray <> 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 <>
Python-bugs-list mailing list