kong icon indicating copy to clipboard operation
kong copied to clipboard

Make negatable flag name customisable

Open camh- opened this issue 7 months ago • 0 comments

Allow a value on the negatable tag to specify a flag name to use for negation instead of using --no-<flag-name> as the flag.

e.g.

Approve bool `default:"true",negatable:"deny"`

This example will allow --deny to set the Approve field to false.

Add duplicate flag name detection for negatable flags.

camh- avatar Jul 24 '24 09:07 camh-