summaryrefslogtreecommitdiffstats
path: root/Doc/library/argparse.rst
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2015-03-12 18:47:41 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2015-03-12 18:47:41 (GMT)
commite7e497bdca2fad614e3d24d09ae24705081bd66f (patch)
treeb1d1eeaab9c43f4ce6a236bba15bac3b170e0a4e /Doc/library/argparse.rst
parent9bd8af788d4f788ae678898b5edff035fe2b9a8e (diff)
downloadcpython-e7e497bdca2fad614e3d24d09ae24705081bd66f.zip
cpython-e7e497bdca2fad614e3d24d09ae24705081bd66f.tar.gz
cpython-e7e497bdca2fad614e3d24d09ae24705081bd66f.tar.bz2
Issue #23651: Fix typo in allow_abbrev docs.
Noticed by Nathan West.
Diffstat (limited to 'Doc/library/argparse.rst')
-rw-r--r--Doc/library/argparse.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
index 1f75cd9..24060f0 100644
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -538,7 +538,7 @@ This feature can be disabled by setting ``allow_abbrev`` to ``False``::
>>> parser = argparse.ArgumentParser(prog='PROG', allow_abbrev=False)
>>> parser.add_argument('--foobar', action='store_true')
>>> parser.add_argument('--foonley', action='store_false')
- >>> parser.parse_args([--foon])
+ >>> parser.parse_args(['--foon'])
usage: PROG [-h] [--foobar] [--foonley]
PROG: error: unrecognized arguments: --foon