forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythongh-86463: Fix default prog in subparsers if usage is used in th…
…e parent parser The placeholder '...' is now used as the prog prefix in subparsers if a custom usage is specified in the parent parser and prog is not specified in the subparser. Previously the full custom usage of the parent parser was used as the prog prefix in subparsers.
- Loading branch information
1 parent
78aeb38
commit f7d939b
Showing
4 changed files
with
61 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
Misc/NEWS.d/next/Library/2024-09-25-21-27-37.gh-issue-86463.lcBmsO.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
:mod:`argparse` now uses the placeholder ``'...'`` as the ``prog`` prefix in | ||
subparsers if a custom ``usage`` is specified in the parent parser and | ||
``prog`` is not specified in the subparser. |