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

Method GetSpecifiedShortnames

errors.go:95–97  ·  view source on GitHub ↗

GetSpecifiedShortnames returns the group of shorthand arguments (without dashes) that the flag appeared within. If the flag was not in a shorthand group, this will return an empty string.

()

Source from the content-addressed store, hash-verified

93// (without dashes) that the flag appeared within. If the flag was not in a
94// shorthand group, this will return an empty string.
95func (e *ValueRequiredError) GetSpecifiedShortnames() string {
96 return e.specifiedShorthands
97}
98
99// InvalidValueError is the error returned when an invalid value is used
100// for a flag.

Callers 1

TestValueRequiredErrorFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestValueRequiredErrorFunction · 0.76