[Python-checkins] cpython: Issue #23651: Fix typo in allow_abbrev docs.
berker.peksag
python-checkins at python.org
Thu Mar 12 19:47:46 CET 2015
https://hg.python.org/cpython/rev/8411ae359c98
changeset: 94961:8411ae359c98
user: Berker Peksag <berker.peksag at gmail.com>
date: Thu Mar 12 20:47:41 2015 +0200
summary:
Issue #23651: Fix typo in allow_abbrev docs.
Noticed by Nathan West.
files:
Doc/library/argparse.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -538,7 +538,7 @@
>>> 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
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list