Eric Smith <[email protected]> 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 <[email protected]>
<http://bugs.python.org/issue9182>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com