You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's kind of deliberate, as when boolean flags are used without explicitly setting a value (eg. --test) they will always set the value to true. That is, they should almost always be false by default, and having the default value in the help is largely redundant.
If you want the value to be set to either true or false I would recommend using negatable:"" and adding something to the description defining the default state.
Hello, the default value for boolean flags is not show in the cli when doing --help, for exmaple I have the following struct
main function
when checking the help output in the cli
The text was updated successfully, but these errors were encountered: