MCPcopy
hub / github.com/perkeep/perkeep / hasFlags

Function hasFlags

pkg/cmdmain/cmdmain.go:154–160  ·  view source on GitHub ↗
(flags *flag.FlagSet)

Source from the content-addressed store, hash-verified

152}
153
154func hasFlags(flags *flag.FlagSet) bool {
155 any := false
156 flags.VisitAll(func(*flag.Flag) {
157 any = true
158 })
159 return any
160}
161
162func usage(msg string) {
163 cmdName := filepath.Base(os.Args[0])

Callers 2

helpFunction · 0.85
MainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected