]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-86463: Fix default prog in subparsers if usage is used in the main parser (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 22 Nov 2024 15:29:33 +0000 (17:29 +0200)
committerGitHub <noreply@github.com>
Fri, 22 Nov 2024 15:29:33 +0000 (17:29 +0200)
commit0cb4d6c6549d2299f7518f083bbe7d10314ecd66
tree702b9453efd01031b859fb14281a03da30bc9394
parent46f8a7bbdbb02cafaa00f7bb9478d3d27affc57a
gh-86463: Fix default prog in subparsers if usage is used in the main parser (GH-125891)

The usage parameter of argparse.ArgumentParser no longer
affects the default value of the prog parameter in subparsers.

Previously the full custom usage of the main parser was used as
the prog prefix in subparsers.
Doc/library/argparse.rst
Lib/argparse.py
Lib/test/test_argparse.py
Misc/NEWS.d/next/Library/2024-10-23-20-05-54.gh-issue-86463.jvFTI_.rst [new file with mode: 0644]