-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Weird behaviour of BoolTFlag compared to BoolFlag #680
Comments
Hi @osleg, This is the expected behavior of Hope this helps! |
Thanks for answer, thou this is a bit confusing since as it could be seen in the demo above the BoolFlag does not require |
👍 I agree it is a bit confusing which is why I believe it's removal in It is specified in the godoc for the package (https://godoc.org/github.com/urfave/cli#BoolTFlag), but let me know if you think the documentation there could be improved (or open a PR 😄 ). Gonna close this out, but thanks for opening this discussion! |
With pleasure, PR added ;) |
Given this snippet
The output of running the app without args is what I'm expecting
But if I provide the flags the
--daemon
flag is ignoredThough if I provide
--daemon=false
it works as intendedIs this expected behaviour?
--debug
doesn't require the explicittrue
and acts like switchThe text was updated successfully, but these errors were encountered: