There was an error while loading. Please reload this page.
1 parent 9bd8af7 commit e7e497bCopy full SHA for e7e497b
1 file changed
Doc/library/argparse.rst
@@ -538,7 +538,7 @@ This feature can be disabled by setting ``allow_abbrev`` to ``False``::
538
>>> parser = argparse.ArgumentParser(prog='PROG', allow_abbrev=False)
539
>>> parser.add_argument('--foobar', action='store_true')
540
>>> parser.add_argument('--foonley', action='store_false')
541
- >>> parser.parse_args([--foon])
+ >>> parser.parse_args(['--foon'])
542
usage: PROG [-h] [--foobar] [--foonley]
543
PROG: error: unrecognized arguments: --foon
544
0 commit comments