Skip to content

Different help text for bool and Option<bool> #5694

Answered by andioz
andioz asked this question in Q&A
Discussion options

You must be logged in to vote

Stupid me, I completely missed the fact that bool is treated as flag by default. Using action = ArgAction::Set seems to work as expected.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by andioz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant