mirror of
https://github.com/python/cpython.git
synced 2026-02-07 10:20:33 +00:00
Updated the test part
This commit is contained in:
parent
bc50109663
commit
c69d057b01
1 changed files with 2 additions and 1 deletions
|
|
@ -1922,8 +1922,9 @@ Subcommands
|
|||
>>> parser = argparse.ArgumentParser(prog='chicken.py')
|
||||
>>> subparsers = parser.add_subparsers()
|
||||
>>> fly = subparsers.add_parser('fly', deprecated=True)
|
||||
>>> args = parser.parse_args(['fly']) # doctest: +SKIP
|
||||
>>> args = parser.parse_args(['fly'])
|
||||
chicken.py: warning: command 'fly' is deprecated
|
||||
Namespace()
|
||||
|
||||
All other keyword arguments are passed directly to the
|
||||
:class:`!ArgumentParser` constructor.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue