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
type globalOpts struct {
BoolFunc func(bool) `long:"bool-func" description:"..."`
}
produces a help message like this:
Usage:
example [OPTIONS]
Application Options:
--bool-func= ...
In this case, I am using a callback for --bool-func for ease, however, the flag is treated (in the help at least) as if it takes a value assigned to it, rather than being a binary on/off flag, as for a plain bool option.
I think the desired output would be:
Usage:
example [OPTIONS]
Application Options:
--bool-func ...
Thanks!
The text was updated successfully, but these errors were encountered:
The following example:
produces a help message like this:
In this case, I am using a callback for --bool-func for ease, however, the flag is treated (in the help at least) as if it takes a value assigned to it, rather than being a binary on/off flag, as for a plain bool option.
I think the desired output would be:
Thanks!
The text was updated successfully, but these errors were encountered: