Skip to content
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

every binary cmd line option should allow on/off switch #9629

Closed
timotheecour opened this issue Nov 6, 2018 · 0 comments · Fixed by #10353
Closed

every binary cmd line option should allow on/off switch #9629

timotheecour opened this issue Nov 6, 2018 · 0 comments · Fixed by #10353
Assignees

Comments

@timotheecour
Copy link
Member

as an example, --listFullPaths doesn't allow --listFullPaths:off; so it can't be undone if user has it in ~/.config/nim/nim.cfg
this would've allowed a simple fix for nim-lang/NimLime#118 where root cause was that --listFullPaths was not being supported
there are other examples like that.

proposal

every binary switch can be passed an on/off value, eg:

--listFullPaths # still allowed
--listFullPaths:on # same as --listFullPaths
--listFullPaths:off # unsets --listFullPaths

implementation: just use processOnOffSwitch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants