We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6975a7 commit 04a0482Copy full SHA for 04a0482
Doc/library/argparse.rst
@@ -1928,9 +1928,8 @@ Subcommands
1928
>>> parser = argparse.ArgumentParser(prog='chicken.py')
1929
>>> subparsers = parser.add_subparsers()
1930
>>> fly = subparsers.add_parser('fly', deprecated=True)
1931
- >>> parser.parse_args(['fly']) # doctest: +SKIP
+ >>> args = parser.parse_args(['fly']) # doctest: +SKIP
1932
chicken.py: warning: command 'fly' is deprecated
1933
- Namespace()
1934
1935
All other keyword arguments are passed directly to the
1936
:class:`!ArgumentParser` constructor.
0 commit comments