-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
How to get the value of the BoolVar to be false in this case #613
Comments
I made some minor changes to your program and hopefully this explains things. Basically, booleans can only take arguments via
|
I got it, Thank you very much. @eparis |
Ref: spf13/cobra#613 (comment) Signed-off-by: Kevin Cui <[email protected]>
Ref: spf13/cobra#613 (comment) Signed-off-by: Kevin Cui <[email protected]>
I hope to get the false value, but always get true from toggle and tog boolean varaibles.
$ ./demo --toggle false --tog false
I hope get the following answer:
tog= false err=
toggle= false
But I got the following one:
tog= true err=
toggle= true
here is the demo code:
is there any error in above codes ?
The text was updated successfully, but these errors were encountered: