[PR with tiny fixes] Fix help command for subcommands with an executable handler and only a short help flag. Do not use undefined long help option flag in legacy code. Change initial variable values in test for better error messages. #1930
Merged
abetomo merged 5 commits intotj:developfrom Aug 19, 2023
Conversation
(cherry picked from commit 87db4ba)
version() parameter type and change initial variable values in test for better error messagesversion() parameter type. Do not use undefined long help option flag in legacy code. Change initial variable values in test for better error messages.
version() parameter type. Do not use undefined long help option flag in legacy code. Change initial variable values in test for better error messages. version() parameter type. Do not use undefined long help option flag in legacy code. Change initial variable values in test for better error messages.
This was referenced Aug 4, 2023
Contributor
Author
|
The Note for myselfOne. Change. Per. PR. Always. (no matter how tiny it is) |
shadowspawn
reviewed
Aug 12, 2023
shadowspawn
reviewed
Aug 12, 2023
shadowspawn
reviewed
Aug 12, 2023
shadowspawn
reviewed
Aug 12, 2023
shadowspawn
reviewed
Aug 12, 2023
shadowspawn
requested changes
Aug 12, 2023
This reverts commit e8bea4a.
aweebit
commented
Aug 12, 2023
version() parameter type. Do not use undefined long help option flag in legacy code. Change initial variable values in test for better error messages.
shadowspawn
reviewed
Aug 13, 2023
Contributor
Author
|
Sorry about the force pushes, there is just already enough clutter in other PRs due to this one, and I don't want to introduce even more. |
shadowspawn
approved these changes
Aug 13, 2023
Contributor
Author
|
Thank you for the patience, I know this PR is a mess. |
This was referenced Aug 13, 2023
This was referenced Jun 19, 2024
This was referenced Jul 5, 2024
This was referenced Sep 8, 2024
This was referenced Sep 20, 2024
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.
Tiny fixes that don't really belong anywhere else.
ChangeLog
Changed
do not callpreSubcommandhooks when displaying help for a subcommand with an executable handler(technically breaking, but hey, are we really going to assume someone relied on this?)deviating help flags specified for a subcommand with an executable handler via.helpOption()are now respected by the parent's help command (passed to the subcommand instead of the parent's help flag)Fixed
.version()optional parameter type