Set destination in GenericFlag apply function
The function was missing destination configuration.
This commit is contained in:
parent
c5057d195e
commit
01bdec784f
@ -34,6 +34,10 @@ func (f *GenericFlag) Apply(set *flag.FlagSet) error {
|
||||
}
|
||||
|
||||
for _, name := range f.Names() {
|
||||
if f.Destination != nil {
|
||||
set.Var(f.Destination, name, f.Usage)
|
||||
continue
|
||||
}
|
||||
set.Var(f.Value, name, f.Usage)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user