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


R. David Murray <rdmurray@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@bugs.python.org>
<http://bugs.python.org/issue14364>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40all-mail-archive.com