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
[patch]: include aliases when looking for defaults for booleans #32
Conversation
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #32 +/- ##
==========================================
+ Coverage 98.75% 98.78% +0.03%
==========================================
Files 1 1
Lines 161 165 +4
Branches 71 70 -1
==========================================
+ Hits 159 163 +4
Misses 2 2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
This seems good, but it also seems like a bigger change than the test indicates, so I'm nervous :-)
If that refactor indeed doesn't require test changes, then at least a separate commit is good :-) whether it's a separate PR or not isn't important. |
Two commits now. (In the order that makes sense afterwards, rather than the order the work happened. 😆 ) |
(The order the work happened is always irrelevant, git has a changelog not a history :-p ) |
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.
Thanks, looks great!
The starting values for boolean options are applied before parsing, whether
false
or a user supplied default. The check for user supplied defaults was not including aliases. Keep it simple and do in two passes using same alias detection logic as in existing code.Fixes: #29