-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add missing test and support help options with only the short flag in Help.visibleOptions()
#1935
Conversation
Side note: I don't know if I'm doing it right with the base PR "extensions" and the merges. The commits and file changes look really cluttered now. If it's appropriate and if #1929 can't be merged right now, a good idea might be to create a temporary branch based off #1929 and make it the base for all PRs building on it (#1931, #1934, #1935). This PR would then only contain the last two commits which are the relevant ones, for example, making it much simpler to review the changes. |
Help.visibleOptions()
test and support help options with only the short flag in Help.visibleOptions()
Help.visibleOptions()
This reverts commit e8bea4a.
610244d
to
3ef03e2
Compare
With 20/20 hindsight I can confidently say this was not the right approach. 😆 Some parts this have been approved separately, and some parts have been rejected separately. Closing this one as too messy to try and review what is left. |
An extension of #1929 fixing a problem I run into when writing demo code for #1931.
Has been merged with the already approved tiny fixes PR #1930 because the parent #1929 has been merged with it.
Problem
Solution
Help.visibleOptions()
code has been updated to support help options with only the short flag well.Tests have been added to cover this and other similar use cases.
ChangeLog
Changed
.createOption()
in.helpOption()
to support custom option flag extractionFixed