]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-58282: Fix support of tuple metavar for positional arguments in argparse...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 2 Oct 2024 09:07:38 +0000 (11:07 +0200)
committerGitHub <noreply@github.com>
Wed, 2 Oct 2024 09:07:38 +0000 (12:07 +0300)
commit72bbebdfd9263dcf11423518aaeb61128dc4b43f
tree331b02ca5b162b8fe0c3b6e952446ff3111e1ff1
parentb338a6122bd4f9a8dfb294981fd4c0b6cfc1b744
[3.12] gh-58282: Fix support of tuple metavar for positional arguments in argparse (GH-124782) (GH-124881)

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

(cherry picked from commit 9b31a2d83fa7cb0fe4d75ce7cf6a2c9ea2ce0728)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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]