We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
From README.md:
Boolean arguments must have explicit values, so ./prog -debug=1 sets debug to true but ./myprog -debug does not.
Not true. If you define
debug := flag.Bool("debug", false, "whatever")
Then passing -debug is enough to have the variable debug hold a true value.
-debug
debug
true
The text was updated successfully, but these errors were encountered:
Thanks for the catch - fixed.
Sorry, something went wrong.
No branches or pull requests
From README.md:
Not true. If you define
Then passing
-debug
is enough to have the variabledebug
hold atrue
value.The text was updated successfully, but these errors were encountered: