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

Method GetFlag

errors.go:125–127  ·  view source on GitHub ↗

GetFlag returns the flag for which the error occurred.

()

Source from the content-addressed store, hash-verified

123
124// GetFlag returns the flag for which the error occurred.
125func (e *InvalidValueError) GetFlag() *Flag {
126 return e.flag
127}
128
129// GetValue returns the invalid value that was provided.
130func (e *InvalidValueError) GetValue() string {

Callers 1

TestInvalidValueErrorFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestInvalidValueErrorFunction · 0.76