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

Function flagNamesInUse

command_setup.go:205–217  ·  view source on GitHub ↗
(flags []Flag, names []string)

Source from the content-addressed store, hash-verified

203}
204
205func flagNamesInUse(flags []Flag, names []string) bool {
206 for _, name := range names {
207 for _, fl := range flags {
208 for _, flagName := range fl.Names() {
209 if flagName == name {
210 return true
211 }
212 }
213 }
214 }
215
216 return false
217}
218
219func (cmd *Command) hideHelp() bool {
220 tracef("hide help (cmd=%[1]q)", cmd.Name)

Callers 1

setupDefaultsMethod · 0.85

Calls 1

NamesMethod · 0.65

Tested by

no test coverage detected