-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GH-87041: Fix incorrect indentation in argparse help #124230
Conversation
Misc/NEWS.d/next/Library/2024-09-19-03-46-59.gh-issue-87041.9Ox7Bv.rst
Outdated
Show resolved
Hide resolved
Misc/NEWS.d/next/Library/2024-09-19-03-46-59.gh-issue-87041.9Ox7Bv.rst
Outdated
Show resolved
Hide resolved
In case of usage a long command along with max_help_position more than the length of the command, the command's help was incorrectly started on the new line
…x7Bv.rst Co-authored-by: Kirill Podoprigora <[email protected]>
…x7Bv.rst Co-authored-by: Kirill Podoprigora <[email protected]>
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.
LGTM.
@savannahostrowski, did you add the author of the original PR as a co-author?
Co-authored-by: Serhiy Storchaka <[email protected]>
@serhiy-storchaka I applied the patch so that the original author is attributed in the commits. Would you like me to amend the news entry? |
This is not needed. If you did not mentioned them in the commit message, I would add the Co-authored-by line. |
Thank you @savannahostrowski for reviving activity on the argparse issues. |
Thanks @savannahostrowski for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
…124230) In case of usage a long command along with max_help_position more than the length of the command, the command's help was incorrectly started on the new line. (cherry picked from commit 7ee9921) Co-authored-by: Savannah Ostrowski <[email protected]> Co-authored-by: Pavel Ditenbir <[email protected]>
GH-124373 is a backport of this pull request to the 3.13 branch. |
…124230) In case of usage a long command along with max_help_position more than the length of the command, the command's help was incorrectly started on the new line. (cherry picked from commit 7ee9921) Co-authored-by: Savannah Ostrowski <[email protected]> Co-authored-by: Pavel Ditenbir <[email protected]>
GH-124374 is a backport of this pull request to the 3.12 branch. |
… (GH-124374) In case of usage a long command along with max_help_position more than the length of the command, the command's help was incorrectly started on the new line. (cherry picked from commit 7ee9921) Co-authored-by: Savannah Ostrowski <[email protected]> Co-authored-by: Pavel Ditenbir <[email protected]>
… (#124373) GH-87041: Fix incorrect indentation in argparse help (GH-124230) In case of usage a long command along with max_help_position more than the length of the command, the command's help was incorrectly started on the new line. (cherry picked from commit 7ee9921) Co-authored-by: Savannah Ostrowski <[email protected]> Co-authored-by: Pavel Ditenbir <[email protected]>
This PR effectively re-opens #24177, which appears to be the correct fix but never got reviewed (I'm in the process of cleaning up some argparse bugs and noticed the corresponding issue still open).