]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-58282: Fix support of tuple metavar for positional arguments in argparse...
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 8 Oct 2024 06:36:38 +0000 (09:36 +0300)
committerGitHub <noreply@github.com>
Tue, 8 Oct 2024 06:36:38 +0000 (06:36 +0000)
commite28f2c670541710ecafc0218d025431125d87fc8
tree3d352376a5a7803a88eec26d03cc2b769ed3122b
parent1e820e63e7a48e8516e9c5d5d4e2dfb6cc9df552
[3.13] gh-58282: Fix support of tuple metavar for positional arguments in argparse (GH-124782) (GH-124882)

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

(cherry picked from commit 9b31a2d83fa7cb0fe4d75ce7cf6a2c9ea2ce0728)

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]