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

Method Flags

category.go:177–195  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

175}
176
177func (fc *defaultVisibleFlagCategory) Flags() []Flag {
178 vfNames := []string{}
179 for flName, fl := range fc.m {
180 if vf, ok := fl.(VisibleFlag); ok {
181 if vf.IsVisible() {
182 vfNames = append(vfNames, flName)
183 }
184 }
185 }
186
187 sort.Strings(vfNames)
188
189 ret := make([]Flag, len(vfNames))
190 for i, flName := range vfNames {
191 ret[i] = fc.m[flName]
192 }
193
194 return ret
195}

Callers

nothing calls this directly

Calls 1

IsVisibleMethod · 0.65

Tested by

no test coverage detected