MCPcopy
hub / github.com/urfave/cli / visibleFlags

Function visibleFlags

flag.go:199–207  ·  view source on GitHub ↗
(fl []Flag)

Source from the content-addressed store, hash-verified

197}
198
199func visibleFlags(fl []Flag) []Flag {
200 var visible []Flag
201 for _, f := range fl {
202 if vf, ok := f.(VisibleFlag); ok && vf.IsVisible() {
203 visible = append(visible, f)
204 }
205 }
206 return visible
207}
208
209func FlagNames(name string, aliases []string) []string {
210 var ret []string

Callers 2

VisibleFlagsMethod · 0.85

Calls 1

IsVisibleMethod · 0.65

Tested by

no test coverage detected