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

Method GetFlag

errors.go:82–84  ·  view source on GitHub ↗

GetFlag returns the flag for which the error occurred.

()

Source from the content-addressed store, hash-verified

80
81// GetFlag returns the flag for which the error occurred.
82func (e *ValueRequiredError) GetFlag() *Flag {
83 return e.flag
84}
85
86// GetSpecifiedName returns the name of the flag (without dashes) as it
87// appeared in the parsed arguments.

Callers 1

TestValueRequiredErrorFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestValueRequiredErrorFunction · 0.76