-
Notifications
You must be signed in to change notification settings - Fork 20
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
Don't always add default values #441
Conversation
two suffix checks should be sufficient
We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story. The labels on this github issue will be updated when the story is started. |
make it less Java-like
only covering non-slices... so far
this is to clarify that the defaults being selectively added are only filepaths
this was a strange bug but I hope it fixes some weirdness
978561b
to
ff7c7f8
Compare
ff7c7f8
to
1550b82
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 to me. Sorry for the delay in reviewing it, It took me long enough to understand the changes.
Kiln currently will behave strangely when an options structure has multiple lists of string fields. Jhanda adds default flag values even when flags are passed. Kiln trims these additional defaults off when a user passes any flags that match that field. There was an error in the logic where it would return early and not trim defaults on fields after the first configured list.
Given the above struct,
if you ran
cmd -a=apricot -b=bean
,then you'd experience
cmd -a=apricot -b=banana -b=bean
I finally found and fixed a bug here a5bd61f. The rest of the commits were small refactors/improvements that I found along the way.
The commits headers were written to be read. I decided not to squash these changes to make review easier. The hunt for the bug was chaotic and I feel this is safe to ship in a patch release.