[issue9182] argparse: optional argument w/ narg='+' conflicts w/ positional argsument
Eric Smith
report at bugs.python.org
Tue Jul 6 22:22:09 CEST 2010
Eric Smith <eric at trueblade.com> added the comment:
I get the same behavior in 2.7. Adding '--', I get:
>>> p.parse_args('-b 123 456 -- bla'.split())
Namespace(bar=[123, 456], foo='bla')
Which is what I expect.
Éric: From your comment, I'm not sure if you think it's a doc bug because '--' does work, or because it doesn't work without it. But I think it's working as designed. I'm closing this. If you think it's a doc bug, please reopen and change to the Documentation component.
----------
nosy: +eric.smith
resolution: -> invalid
status: open -> closed
versions: +Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9182>
_______________________________________
More information about the Python-bugs-list
mailing list