[issue13605] document argparse's nargs=REMAINDER

Tshepang Lekhonkhobe report at bugs.python.org
Mon Feb 20 11:26:25 CET 2012


Tshepang Lekhonkhobe <tshepang at gmail.com> added the comment:

(this is only concerning the latest commit)

Not sure if I should open a new issue, but why is there a print function at all, given that:

>>> print(parser.parse_args('--foo B cmd --arg1 XX ZZ'.split()))
Namespace(args=['--arg1', 'XX', 'ZZ'], command='cmd', foo='B')

>>> parser.parse_args('--foo B cmd --arg1 XX ZZ'.split())
Namespace(args=['--arg1', 'XX', 'ZZ'], command='cmd', foo='B')

----------
nosy: +tshepang

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


More information about the Python-bugs-list mailing list