mirror of https://github.com/python/cpython
Issue #13605: merge with 3.2
This commit is contained in:
commit
32ac92cd4a
|
@ -867,7 +867,7 @@ values are:
|
|||
>>> parser.add_argument('--foo')
|
||||
>>> parser.add_argument('command')
|
||||
>>> parser.add_argument('args', nargs=argparse.REMAINDER)
|
||||
>>> print parser.parse_args('--foo B cmd --arg1 XX ZZ'.split())
|
||||
>>> print(parser.parse_args('--foo B cmd --arg1 XX ZZ'.split()))
|
||||
Namespace(args=['--arg1', 'XX', 'ZZ'], command='cmd', foo='B')
|
||||
|
||||
If the ``nargs`` keyword argument is not provided, the number of arguments consumed
|
||||
|
|
Loading…
Reference in New Issue