Compare commits
2 Commits
7e7e2265e4
...
c9b7977808
Author | SHA1 | Date |
---|---|---|
rjl493456442 | c9b7977808 | |
Daniel Liu | 5e1a39d67f |
|
@ -90,7 +90,7 @@ func (f *DirectoryFlag) Apply(set *flag.FlagSet) error {
|
|||
}
|
||||
}
|
||||
eachName(f, func(name string) {
|
||||
set.Var(&f.Value, f.Name, f.Usage)
|
||||
set.Var(&f.Value, name, f.Usage)
|
||||
})
|
||||
return nil
|
||||
}
|
||||
|
@ -172,7 +172,7 @@ func (f *BigFlag) Apply(set *flag.FlagSet) error {
|
|||
}
|
||||
eachName(f, func(name string) {
|
||||
f.Value = new(big.Int)
|
||||
set.Var((*bigValue)(f.Value), f.Name, f.Usage)
|
||||
set.Var((*bigValue)(f.Value), name, f.Usage)
|
||||
})
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue