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

Method Output

flag.go:283–288  ·  view source on GitHub ↗

Output returns the destination for usage and error messages. os.Stderr is returned if output was not set or was set to nil.

()

Source from the content-addressed store, hash-verified

281// Output returns the destination for usage and error messages. os.Stderr is returned if
282// output was not set or was set to nil.
283func (f *FlagSet) Output() io.Writer {
284 if f.output == nil {
285 return os.Stderr
286 }
287 return f.output
288}
289
290// Name returns the name of the flag set.
291func (f *FlagSet) Name() string {

Callers 9

TestOutputFunction · 0.95
ShorthandLookupMethod · 0.95
SetMethod · 0.95
PrintDefaultsMethod · 0.95
AddFlagMethod · 0.95
parseSingleShortArgMethod · 0.95
ParseMethod · 0.95
ParseAllMethod · 0.95
defaultUsageFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestOutputFunction · 0.76