From: Berker Peksag Date: Thu, 12 Mar 2015 18:47:41 +0000 (+0200) Subject: Issue #23651: Fix typo in allow_abbrev docs. X-Git-Tag: v3.5.0a3~193 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e7e497bdca2fad614e3d24d09ae24705081bd66f;p=thirdparty%2FPython%2Fcpython.git Issue #23651: Fix typo in allow_abbrev docs. Noticed by Nathan West. --- diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index 1f75cd9e5f2e..24060f06bca5 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