MCPcopy
hub / github.com/benbjohnson/wtf / attachConfigFlags

Function attachConfigFlags

cmd/wtf/main.go:133–135  ·  view source on GitHub ↗

attachConfigFlags adds a common "-config" flag to a flag set.

(fs *flag.FlagSet, p *string)

Source from the content-addressed store, hash-verified

131
132// attachConfigFlags adds a common "-config" flag to a flag set.
133func attachConfigFlags(fs *flag.FlagSet, p *string) {
134 fs.StringVar(p, "config", DefaultConfigPath, "config path")
135}

Callers 5

RunMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected