-
-
Notifications
You must be signed in to change notification settings - Fork 154
Closed
Description
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".
egoodhall, AlekSi, mmarchetti, livingsilver94 and prashantv
Metadata
Metadata
Assignees
Labels
No labels