Skip to content

Commit

Permalink
Apply suggestions from review.
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-storchaka committed Oct 11, 2024
1 parent 3e64528 commit 36c5c20
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Doc/library/argparse.rst
Original file line number Diff line number Diff line change
Expand Up @@ -635,8 +635,11 @@ be positional::
usage: PROG [-h] [-f FOO] bar
PROG: error: the following arguments are required: bar

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

Expand Down

0 comments on commit 36c5c20

Please sign in to comment.