Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e7e497b

Browse files
committed
Issue #23651: Fix typo in allow_abbrev docs.
Noticed by Nathan West.
1 parent 9bd8af7 commit e7e497b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/argparse.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ This feature can be disabled by setting ``allow_abbrev`` to ``False``::
538538
>>> parser = argparse.ArgumentParser(prog='PROG', allow_abbrev=False)
539539
>>> parser.add_argument('--foobar', action='store_true')
540540
>>> parser.add_argument('--foonley', action='store_false')
541-
>>> parser.parse_args([--foon])
541+
>>> parser.parse_args(['--foon'])
542542
usage: PROG [-h] [--foobar] [--foonley]
543543
PROG: error: unrecognized arguments: --foon
544544

0 commit comments

Comments
 (0)