We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66e9c2a commit e77547bCopy full SHA for e77547b
Doc/library/argparse.rst
@@ -1123,8 +1123,8 @@ keyword argument to :meth:`~ArgumentParser.add_argument`::
1123
>>> parser.parse_args(['--foo', 'BAR'])
1124
Namespace(foo='BAR')
1125
>>> parser.parse_args([])
1126
- usage: argparse.py [-h] [--foo FOO]
1127
- argparse.py: error: option --foo is required
+ usage: [-h] --foo FOO
+ : error: the following arguments are required: --foo
1128
1129
As the example shows, if an option is marked as ``required``,
1130
:meth:`~ArgumentParser.parse_args` will report an error if that option is not
0 commit comments