Merge branch 'master' of https://github.com/joshuarubin/cli into joshuarubin-master

This commit is contained in:
Dan Buch 2016-06-08 10:31:40 -04:00
commit 86e4f9526d
No known key found for this signature in database
GPG Key ID: FAEF12936DD3E3EC

View File

@ -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)
} }
} }