Get boolean options without having to specify --option False/True #2665
Answered
by
yesseruser
yesseruser
asked this question in
Q&A
-
With Cocona (a C# equivalent of Click), when I have a boolean option, I can simply use it by using --option without specifying true or false. Is it possible to get the same behaviour in Click? |
Beta Was this translation helpful? Give feedback.
Answered by
yesseruser
Jan 17, 2024
Replies: 1 comment 1 reply
-
try searching for flags in the docs.. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found a stack overflow post where
is_flag=true
on anoption
was used.