From e7e497bdca2fad614e3d24d09ae24705081bd66f Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Thu, 12 Mar 2015 20:47:41 +0200 Subject: [PATCH] Issue #23651: Fix typo in allow_abbrev docs. Noticed by Nathan West. --- Doc/library/argparse.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index 1f75cd9e5f2..24060f06bca 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