-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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 'default_missing_value' configuration option #1587
Conversation
As mentioned in the other comments, I'd like to see the most work put towards how we make it clear the difference between default value and default missing value, as well as thinking through all the possible edge cases. Perhaps naming it The one other area of concern is how this interacts with the conditional default values, or should it? I'm perfectly OK saying it doesn't. |
|
I can easily change the name from I'm concerned a bit about the semantics... Is I do think that (1) |
I agree and you make a great point. The best terminology I can think of is |
I'd say |
@tshepang , no, this PR is actually exactly the opposite. This PR and IMO ...
|
Hm, maybe |
@tshepang , most shells parse and return
|
@rivy Please rebase and add some tests and docs. |
Will do ... in the middle of landing a large PR to |
@pksunkara , @kbknapp , the code is now rebased onto 'master' and updated to use the newer clap-v3 internals. I've also added a few tests. I should have some documentation comments done within the next day or so... Please review and let me know what revisions you'd like and whatever else needs to be done as prep for merge. |
4566667
to
b4cf266
Compare
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.
Looks good. Have a few minor comments. You probably need to make sure cargo fmt
doesn't fail.
Can you also add a test case which gets empty value for |
b4cf266
to
a3ffd2b
Compare
@pksunkara , @kbknapp , @CreepySkeleton , docs added; some polish done based on initial feedback. |
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.
Looks good.
Tests are still failing and you haven't addressed all my comments. |
8489bf3
to
f2b590c
Compare
Doc and lint tests are now passing. |
Changes made based on feedback. |
Looks good. I don't have any other comments. |
82753f6
to
83a822e
Compare
Rebased onto current Tests are all passing. |
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.
bors r+
Build succeeded: |
Thanks everyone 🙏 |
v3-compatible version of #1468.
Re-opened from #1507 (after upstream branch rename auto-close).
clap
(v3) compiles and tests without error after this patch, but there is no specific testing of the feature as of yet (WIP).I'm happy to put some more effort towards this (adding tests, documentation, etc) if it is a desired feature addition.