Skip to content

Commit 04a0482

Browse files
changes #1
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent b6975a7 commit 04a0482

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Doc/library/argparse.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1928,9 +1928,8 @@ Subcommands
19281928
>>> parser = argparse.ArgumentParser(prog='chicken.py')
19291929
>>> subparsers = parser.add_subparsers()
19301930
>>> fly = subparsers.add_parser('fly', deprecated=True)
1931-
>>> parser.parse_args(['fly']) # doctest: +SKIP
1931+
>>> args = parser.parse_args(['fly']) # doctest: +SKIP
19321932
chicken.py: warning: command 'fly' is deprecated
1933-
Namespace()
19341933

19351934
All other keyword arguments are passed directly to the
19361935
:class:`!ArgumentParser` constructor.

0 commit comments

Comments
 (0)