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

Function TextVarP

text.go:79–81  ·  view source on GitHub ↗

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

(p encoding.TextUnmarshaler, name, shorthand string, value encoding.TextMarshaler, usage string)

Source from the content-addressed store, hash-verified

77
78// TextVarP is like TextVar, but accepts a shorthand letter that can be used after a single dash.
79func TextVarP(p encoding.TextUnmarshaler, name, shorthand string, value encoding.TextMarshaler, usage string) {
80 CommandLine.VarP(newTextValue(value, p), name, shorthand, usage)
81}

Callers

nothing calls this directly

Calls 2

newTextValueFunction · 0.85
VarPMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…