]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-59330: Improve error message for dest= for positionals (GH-125215)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 12 Oct 2024 11:46:28 +0000 (14:46 +0300)
committerGitHub <noreply@github.com>
Sat, 12 Oct 2024 11:46:28 +0000 (14:46 +0300)
commita6c0c64de0ade400df7995f1e9480b6fc0f863aa
treed48eb4b42b7f9c0e04bd15fe4c4105b7694a2ce3
parenteb2d268ac7480b5e2b4ffb9a644cad7ac75ae954
gh-59330: Improve error message for dest= for positionals (GH-125215)

Also improve the documentation. Specify how dest and metavar are derived
from add_argument() positional arguments.

Co-authored-by: Simon Law <sfllaw@sfllaw.ca>
Doc/library/argparse.rst
Lib/argparse.py
Lib/test/test_argparse.py