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

Function StringP

string.go:78–80  ·  view source on GitHub ↗

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

(name, shorthand string, value string, usage string)

Source from the content-addressed store, hash-verified

76
77// StringP is like String, but accepts a shorthand letter that can be used after a single dash.
78func StringP(name, shorthand string, value string, usage string) *string {
79 return CommandLine.StringP(name, shorthand, value, usage)
80}

Callers

nothing calls this directly

Calls 1

StringPMethod · 0.80

Tested by

no test coverage detected