Merge branch 'master' of https://github.com/joshuarubin/cli into joshuarubin-master
This commit is contained in:
commit
86e4f9526d
2
flag.go
2
flag.go
@ -512,7 +512,7 @@ func (f Float64Flag) GetName() string {
|
|||||||
func visibleFlags(fl []Flag) []Flag {
|
func visibleFlags(fl []Flag) []Flag {
|
||||||
visible := []Flag{}
|
visible := []Flag{}
|
||||||
for _, flag := range fl {
|
for _, flag := range fl {
|
||||||
if !reflect.ValueOf(flag).FieldByName("Hidden").Bool() {
|
if !reflect.Indirect(reflect.ValueOf(flag)).FieldByName("Hidden").Bool() {
|
||||||
visible = append(visible, flag)
|
visible = append(visible, flag)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user