Skip to content

Commit 36c5c20

Browse files
Apply suggestions from review.
1 parent 3e64528 commit 36c5c20

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Doc/library/argparse.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,8 +635,11 @@ be positional::
635635
usage: PROG [-h] [-f FOO] bar
636636
PROG: error: the following arguments are required: bar
637637

638-
You do not need to specify the dest_ and metavar_ parameters. The
639-
dest_ parameter defaults to the argument name with underscores ``_``
638+
By default, argparse automatically handles the internal naming and
639+
display names of arguments, simplifying the process without requiring
640+
additional configuration.
641+
As such, you do not need to specify the dest_ and metavar_ parameters.
642+
The dest_ parameter defaults to the argument name with underscores ``_``
640643
replacing hyphens ``-`` . The metavar_ parameter defaults to the
641644
upper-cased name. For example::
642645

0 commit comments

Comments
 (0)