cobra icon indicating copy to clipboard operation
cobra copied to clipboard

Add a `no-` version of a boolean

Open trajano opened this issue 7 months ago • 8 comments

Say I have

serviceLogsCmd.Flags().BoolVarP(&serviceLogsFollow, "follow", "f", true, "Follow log output")

It would be nice to have a --no-follow automatically generated.

trajano avatar Nov 16 '23 05:11 trajano