]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-58282: Fix support of tuple metavar for positional arguments in argparse (GH-124782)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 2 Oct 2024 08:28:02 +0000 (11:28 +0300)
committerGitHub <noreply@github.com>
Wed, 2 Oct 2024 08:28:02 +0000 (11:28 +0300)
commit9b31a2d83fa7cb0fe4d75ce7cf6a2c9ea2ce0728
tree4a58e91004c914bb22a4555fee420031275fbd23
parent9ce90206b7a4649600218cf0bd4826db79c9a312
gh-58282: Fix support of tuple metavar for positional arguments in argparse (GH-124782)

Previously, formatting help output or error message for positional argument
with a tuple metavar raised exception.

Co-authored-by: Cyker Way <cykerway@gmail.com>
Lib/argparse.py
Lib/test/test_argparse.py
Misc/NEWS.d/next/Library/2018-12-04-07-36-27.bpo-14074.fMLKCu.rst [new file with mode: 0644]