kong
kong copied to clipboard
Make negatable flag name customisable
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.