-
Notifications
You must be signed in to change notification settings - Fork 14
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
[fontc] --emit-ir=false leads to TasksFailed([(Be(Font), "IO failure")]) #224
Comments
If I set the default_value = false, then I get another error:
|
https://stackoverflow.com/questions/60458705/how-do-i-specify-a-boolean-command-line-flag-using-clap seems to support the theory bools need to default false and then get turned on by flag. That's annoying because Google best practice is to avoid negative flags but this seemingly leads you directly there, e.g. we would make the arg no_ir, default false, if you pass it we don't emit ir. |
keeping open until we fix the |
fontc has an --emit-ir flag which is true by default, however it doesn't seem to be possible to disable it.
I tried --no-emit-r or --emit-ir=false but didn't work. Passing
--emit-ir
does nothing different than not passing one at all, since the default is already true.Should the default be false maybe? Or maybe it can be true but use clap's ArgAction::SetFalse?
The text was updated successfully, but these errors were encountered: