Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d08972f commit 04e8293Copy full SHA for 04e8293
1 file changed
Doc/library/argparse.rst
@@ -712,7 +712,7 @@ be positional::
712
Namespace(bar='BAR', foo='FOO')
713
>>> parser.parse_args(['--foo', 'FOO'])
714
usage: PROG [-h] [-f FOO] bar
715
- PROG: error: too few arguments
+ PROG: error: the following arguments are required: bar
716
717
718
action
@@ -898,7 +898,7 @@ values are:
898
Namespace(foo=['a', 'b'])
899
>>> parser.parse_args([])
900
usage: PROG [-h] foo [foo ...]
901
+ PROG: error: the following arguments are required: foo
902
903
.. _`argparse.REMAINDER`:
904
0 commit comments