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

Method GetSpecifiedName

errors.go:88–90  ·  view source on GitHub ↗

GetSpecifiedName returns the name of the flag (without dashes) as it appeared in the parsed arguments.

()

Source from the content-addressed store, hash-verified

86// GetSpecifiedName returns the name of the flag (without dashes) as it
87// appeared in the parsed arguments.
88func (e *ValueRequiredError) GetSpecifiedName() string {
89 return e.specifiedName
90}
91
92// GetSpecifiedShortnames returns the group of shorthand arguments
93// (without dashes) that the flag appeared within. If the flag was not in a

Callers 1

TestValueRequiredErrorFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestValueRequiredErrorFunction · 0.76