How do I specify a BoolFlag with the inverse value set? #1803
Unanswered
joebonneau
asked this question in
Q&A
Replies: 1 comment 2 replies
-
@joebonneau Yes you can use the BoolWithInverseFlag similar to how the BoolFlag is used and it will automatically setup 2 flags internally for the xx and the no-xx flags names. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I see in the source code that there is a module called flag_bool_with_inverse.go, but I can't seem to find any documentation of how to implement this. If I just happened to miss it in the docs, sorry in advance.
Thanks,
Joe
Beta Was this translation helpful? Give feedback.
All reactions