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

Warren Turkal report at bugs.python.org
Sat Feb 4 22:24:53 CET 2012


Warren Turkal <wt at penguintechs.org> added the comment:

I wanted to include a minimal example script, so here it is. If you run this like so:
$ ./test.py -- blah -- blah2

you will get the the following output:
Namespace(args=['blah2'], target=['blah'])

I would have expected the following instead:
Namespace(args=['--', 'blah2'], target=['blah'])

----------

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


More information about the Python-bugs-list mailing list