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

Function StringArrayVarP

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

StringArrayVarP is like StringArrayVar, but accepts a shorthand letter that can be used after a single dash.

(p *[]string, name, shorthand string, value []string, usage string)

Source from the content-addressed store, hash-verified

93
94// StringArrayVarP is like StringArrayVar, but accepts a shorthand letter that can be used after a single dash.
95func StringArrayVarP(p *[]string, name, shorthand string, value []string, usage string) {
96 CommandLine.VarP(newStringArrayValue(value, p), name, shorthand, usage)
97}
98
99// StringArray defines a string flag with specified name, default value, and usage string.
100// The return value is the address of a []string variable that stores the value of the flag.

Callers

nothing calls this directly

Calls 2

newStringArrayValueFunction · 0.85
VarPMethod · 0.80

Tested by

no test coverage detected