diff options
author | suic86 <marko.gabriel.cz@gmail.com> | 2018-04-11 18:45:04 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2018-04-11 18:45:04 (GMT) |
commit | 04e82934659487ecae76bf4a2db7f92c8dbe0d25 (patch) | |
tree | c93267a69a2baeddcccd5ea4763472e4b43ca2e6 /Doc | |
parent | d08972fdb92cad6b813d22205752c97ea18df060 (diff) | |
download | cpython-04e82934659487ecae76bf4a2db7f92c8dbe0d25.zip cpython-04e82934659487ecae76bf4a2db7f92c8dbe0d25.tar.gz cpython-04e82934659487ecae76bf4a2db7f92c8dbe0d25.tar.bz2 |
Fix error messages in argparse examples (GH-6435)
The examples in argparse documentation use `error: too few arguments`
error message which was removed in this commit f97c59a in 2011.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/argparse.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index cc99cce..3f327c0 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -712,7 +712,7 @@ be positional:: Namespace(bar='BAR', foo='FOO') >>> parser.parse_args(['--foo', 'FOO']) usage: PROG [-h] [-f FOO] bar - PROG: error: too few arguments + PROG: error: the following arguments are required: bar action @@ -898,7 +898,7 @@ values are: Namespace(foo=['a', 'b']) >>> parser.parse_args([]) usage: PROG [-h] foo [foo ...] - PROG: error: too few arguments + PROG: error: the following arguments are required: foo .. _`argparse.REMAINDER`: |