From c4884c76df6892813797d1701c393a16b717f76f Mon Sep 17 00:00:00 2001 From: Gabriel Marko Date: Tue, 20 Mar 2018 22:09:30 +0100 Subject: [PATCH] Fix error messages in argparse examples. The examples in argparse documentation use `error: too few arguments` error message which was removed in this commit f97c59a in 2011. (see https://github.com/python/cpython/commit/f97c59aaba2d93e48cbc6d25f7ff9f9c87f8d0b2) --- Doc/library/argparse.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index 53e670161dd5b3..842a4c6d8a205e 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`: