(fs *flag.FlagSet, flagnames ...string)
| 109 | } |
| 110 | |
| 111 | func 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 | |
| 121 | func processFlagForGroupAnnotation(flags *flag.FlagSet, pflag *flag.Flag, annotation string, groupStatus map[string]map[string]bool) { |
| 122 | groupInfo, found := pflag.Annotations[annotation] |
no outgoing calls
no test coverage detected