-
Notifications
You must be signed in to change notification settings - Fork 698
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
Make enable/disable nix flag easier to read #8054
Conversation
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.
Make sense. Would you add a tiny changelog file and test?
@jwaldmann: could you review, please? |
I'll look into it, but I'm busy this week. |
Thank you. No rush. |
@Mikolaj I have tested the |
hmm,
|
@jneira Thanks for the suggestion, I tried that and it doesn't give any more info than it did before (I assume it would throw an error if it didn't find "shell.nix" or "default.nix") but it may be working. I've been trying to go through the command with |
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.
lgtm, thanks for adding a test and the changelog
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.
You could probably obtain the test quicker by copy-pasting something that depends on an existing harness. but test variety is a boon (except when maintaining tests) and this one is really good.
@Mikolaj Thanks, I wasn't sure where to put the test but it seems like that was good enough. I couldn't find anything that was already in place that tested flags so I just set it up with the functions I could find. |
This PR is attempting to close #8036
The
boolOpt
function will not allow for more than one description so I changed the option type fromoption
tomultiOption
so that the "nix" (--enable-nix
and--disable-nix
) flags would still be grouped together and allow separate descriptions for disabled and enabled.As far as the language goes I felt like if the description of "Nix integration" for the
--disable-nix
was taken out it would make it more clear. It is defined in--enable-nix
and--disable-nix
is right under it.Please include the following checklist in your PR:
Please also shortly describe how you tested your change. Bonus points for added tests!