Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.2k
gh-135227: argparse: Usehelp
as defaultdescription
inadd_parser
#135236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
python-cla-botbot commentedJun 7, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This will need a blurb entry and test for the new behavior.
Sonu0305 commentedJun 7, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Thanks. edit: typo |
Misc/NEWS.d/next/Library/2025-06-07-15-10-22.gh-issue-135227.LPeDGt.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
f340e36
to904c5be
ComparePlease stop repeatedly force pushing, it confuses GitHub. |
Sorry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
What is the way to restore the current behavior? I.e. to create a parser without description?
Uh oh!
There was an error while loading.Please reload this page.
@Sonu0305 it's generally best to avoid force pushing once you've received feedback, since it makes it harder for reviewers to see what changed. PRs are squash merged anyway |
Sorry, I pushed a commit with wrong changes, hence I decided to force push, I will surely avoid this and keep in mind. |
New changes, help in a way, where |
What if the user wants help but no description? |
Sonu0305 commentedJun 11, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
The user can set |
Uh oh!
There was an error while loading.Please reload this page.
Fixes#135227
argparse._SubParsersAction.add_parser
should default todescription
matchinghelp
#135227