Issue #13605: merge with 3.2

This commit is contained in:
Sandro Tosi 2012-02-19 19:54:23 +01:00
commit 32ac92cd4a
1 changed files with 1 additions and 1 deletions

View File

@ -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