From d82442991b22e5096c1ac5c739e45466ba2ff6fd Mon Sep 17 00:00:00 2001 From: Isaac Oscar Gariano Date: Sun, 17 Aug 2025 22:36:23 +1000 Subject: [PATCH] Fix argparse documentation to make it clear that -n takes an argument. --- doc_src/cmds/argparse.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc_src/cmds/argparse.rst b/doc_src/cmds/argparse.rst index 96453e5a4..f415cbb98 100644 --- a/doc_src/cmds/argparse.rst +++ b/doc_src/cmds/argparse.rst @@ -27,8 +27,8 @@ Options The following ``argparse`` options are available. They must appear before all *OPTION_SPEC*\ s: -**-n** or **--name** - The command name for use in error messages. By default the current function name will be used, or ``argparse`` if run outside of a function. +**-n** or **--name** *NAME* + Use *NAME* in error messages. By default the current function name will be used, or ``argparse`` if run outside of a function. **-x** or **--exclusive** *OPTIONS* A comma separated list of options that are mutually exclusive. You can use this more than once to define multiple sets of mutually exclusive options.