MCPcopy Create free account
hub / github.com/Songmu/make2help / parseFlags

Function parseFlags

cli.go:61–74  ·  view source on GitHub ↗
(argv []string)

Source from the content-addressed store, hash-verified

59)
60
61func parseFlags(argv []string) (restArgv []string, isHelp, isAll bool) {
62 for _, v := range argv {
63 if helpReg.MatchString(v) {
64 isHelp = true
65 return
66 }
67 if allReg.MatchString(v) {
68 isAll = true
69 continue
70 }
71 restArgv = append(restArgv, v)
72 }
73 return
74}
75
76func help() string {
77 return fmt.Sprintf(`Usage:

Callers 1

RunMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected