-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
gh-90300: split --help output into separate options #30331
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
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
225c869
move list of X options out of help output
merwok eaefd1a
mention help option in fatal error message
merwok 57fd33b
move variable declaration out of case block
merwok 55dbf69
move extra envvars help to separate option
merwok 0aaf9af
doc
merwok a592003
add minimal tests
merwok 1c4cf63
flatten the sub-switch
merwok d8bfcff
suggestion from Barry
merwok 38f2dd8
more suggestions from flufl
merwok a828fe8
remove unnecessary
merwok 8bde4ec
mention all envvars in --help-env
merwok 0dbaf03
mistake
merwok 0c9a995
introduce --help-xoptions
merwok aab464f
add --help-all
merwok 064d4ad
merge upstream
merwok b9a0b19
replace fprintf by printf; remove extra blanklines
merwok 0ee24d4
merge upstream
merwok dd2beaa
Merge branch 'main' into shorten-help-output
merwok c74fc69
merge upstream
merwok 2f108fe
merge upstream
merwok 4f345e8
check return code in verify_valid_flag
merwok a6573d6
remove duplicate check
merwok da97a38
fix some help texts in 80 columns
merwok 98525b4
remove needless checks
merwok 5585095
reformat and rearrange some help entries
merwok 24526bd
fix formatting issues and missing info in man page and --help
merwok 0bb5dfa
make new tests a bit more useful
merwok 8fa72f5
512 bytes should be enough for everyone
merwok 29d04a0
keep long option at the end of help text
merwok 356d1bf
merge branch 'fix-help-man'
merwok ac1b5fb
fix tests and output
merwok 9bcea95
final fixes
merwok 5485255
merge upstream
merwok File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
3 changes: 3 additions & 0 deletions
3
Misc/NEWS.d/next/Core and Builtins/2022-01-02-14-53-59.bpo-46142.WayjgT.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 @@ | ||
Make ``--help`` output shorter by moving some info to the new | ||
``--help-env`` and ``--help-xoptions`` command-line options. | ||
Also add ``--help-all`` option to print complete usage. |
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
Oops, something went wrong.
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.
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.
I thought showing all help options on their own line could be nice.