MCPcopy
hub / github.com/spf13/pflag / Init

Method Init

flag.go:1285–1289  ·  view source on GitHub ↗

Init sets the name and error handling property for a flag set. By default, the zero FlagSet uses an empty name and the ContinueOnError error handling policy.

(name string, errorHandling ErrorHandling)

Source from the content-addressed store, hash-verified

1283// By default, the zero FlagSet uses an empty name and the
1284// ContinueOnError error handling policy.
1285func (f *FlagSet) Init(name string, errorHandling ErrorHandling) {
1286 f.name = name
1287 f.errorHandling = errorHandling
1288 f.argsLenAtDash = -1
1289}

Callers 2

TestUserDefinedFunction · 0.95
TestSetOutputFunction · 0.95

Calls

no outgoing calls

Tested by 2

TestUserDefinedFunction · 0.76
TestSetOutputFunction · 0.76