Fix error in argparse documentation example (GH-17399)
Automerge-Triggered-By: @rhettinger
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
index 0b64dfe..7a7a4cf 100644
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -1162,8 +1162,8 @@
>>> parser.parse_args(['--foo', 'BAR'])
Namespace(foo='BAR')
>>> parser.parse_args([])
- usage: argparse.py [-h] [--foo FOO]
- argparse.py: error: option --foo is required
+ usage: [-h] --foo FOO
+ : error: the following arguments are required: --foo
As the example shows, if an option is marked as ``required``,
:meth:`~ArgumentParser.parse_args` will report an error if that option is not