MCPcopy
hub / github.com/spf13/cobra / hasAllFlags

Function hasAllFlags

flag_groups.go:111–119  ·  view source on GitHub ↗
(fs *flag.FlagSet, flagnames ...string)

Source from the content-addressed store, hash-verified

109}
110
111func hasAllFlags(fs *flag.FlagSet, flagnames ...string) bool {
112 for _, fname := range flagnames {
113 f := fs.Lookup(fname)
114 if f == nil {
115 return false
116 }
117 }
118 return true
119}
120
121func processFlagForGroupAnnotation(flags *flag.FlagSet, pflag *flag.Flag, annotation string, groupStatus map[string]map[string]bool) {
122 groupInfo, found := pflag.Annotations[annotation]

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected