Currently it seams the aliases tag only works for "commands", would it be possible to enable it for normal flags as well?
type Arg struct {
TestFlag string `kong:"aliases='alt-flag'"
}
That would let you either run ./cmd --test-flag blah or ./cmd --alt-flag blah and in both cases the TestFlag field would contain blah. Maybe this is already allowed and I'm just doing it wrong but in testing it says the aliases names are an "unknown flag".
Currently it seams the
aliasestag only works for "commands", would it be possible to enable it for normal flags as well?That would let you either run
./cmd --test-flag blahor./cmd --alt-flag blahand in both cases theTestFlagfield would containblah. Maybe this is already allowed and I'm just doing it wrong but in testing it says the aliases names are an "unknown flag".