Repository navigation
Conversation
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Author
|
Opened against the wrong repository by mistake, sorry. |
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.
Summary
Implements the help-output filtering for
--help-groupinshowhelp().--help-group=<name>prints only that group's section (heading, description, options), formatted the same way as in--help. Works for custom groups and built-in ones, with or without--help.FILTERING_PENDINGmarker, so the 3 filtering tests that were xfail now run as normal tests.changelog/9452.feature.rstfor the whole feature (so no one else needs to add one) and added myself toAUTHORS.Builds on #<Brian's PR number> (CLI parsing) and #<Dylan's PR number> (tests).
Related upstream issue: #9452
Testing
testing/test_help_group.py: 16 passed (was 13 passed, 3 xfailed).testing/test_config.py+testing/test_parseopt.py: 364 passed, 1 xfailed (an existing xfail, not related).--help-group=debugconfig, an unknown name, no value, and plain--help.Open questions
--help-groupalso show the ini options and environment variables? Right now it hides them, and the tests don't lock it in either way._anonymousstill shows in the unknown group error (same as Dylan raised). Hide it, or show it as "Custom options"?Checklist
Co-authored-bycommit trailers.AUTHORS.