gh-101599: changed argparse -h/-help flag for the sake of readability#103372
Merged
serhiy-storchaka merged 8 commits intopython:mainfrom Feb 2, 2024
Merged
gh-101599: changed argparse -h/-help flag for the sake of readability#103372serhiy-storchaka merged 8 commits intopython:mainfrom
serhiy-storchaka merged 8 commits intopython:mainfrom
Conversation
|
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Member
serhiy-storchaka
left a comment
There was a problem hiding this comment.
And the parts variable can now be deleted.
serhiy-storchaka
approved these changes
Feb 2, 2024
Member
serhiy-storchaka
left a comment
There was a problem hiding this comment.
LGTM.
Thank you for your contribution @Jokimax.
aisk
pushed a commit
to aisk/cpython
that referenced
this pull request
Feb 11, 2024
…103372) If the option with argument has short and long names, output argument only once, after the long name: -o, --option ARG description instead of -o ARG, --option ARG description
fsc-eriker
pushed a commit
to fsc-eriker/cpython
that referenced
this pull request
Feb 14, 2024
…103372) If the option with argument has short and long names, output argument only once, after the long name: -o, --option ARG description instead of -o ARG, --option ARG description
4 tasks
This was referenced Sep 12, 2024
This was referenced Sep 23, 2024
13 tasks
DreamConnected
pushed a commit
to DreamConnected/libapparmor-dev
that referenced
this pull request
May 9, 2025
Python 3.13 changes the formatting of long-short option pairs that use a meta-variable. Up until 3.13 the meta-variable was repeated. Since Python change [1] the meta-var is only printed once. [1] python/cpython#103372 Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com> (cherry picked from commit 6336465) Signed-off-by: John Johansen <john.johansen@canonical.com>
DreamConnected
pushed a commit
to DreamConnected/libapparmor-dev
that referenced
this pull request
May 9, 2025
Python 3.13 changes the formatting of long-short option pairs that use a meta-variable. Up until 3.13 the meta-variable was repeated. Since Python change [1] the meta-var is only printed once. [1] python/cpython#103372 Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com> MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1495 Approved-by: Georgia Garcia <georgia.garcia@canonical.com> Approved-by: Christian Boltz <apparmor@cboltz.de> Merged-by: Zygmunt Krynicki <me@zygoon.pl> (cherry picked from commit 219626c)
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
argparsePrints options per flag name when only once is necessary #101599