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

Function VarP

flag.go:933–935  ·  flag.go::VarP

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

(value Value, name, shorthand, usage string)

Source from the content-addressed store, hash-verified

931
932// VarP is like Var, but accepts a shorthand letter that can be used after a single dash.
933func VarP(value Value, name, shorthand, usage string) {
934 CommandLine.VarP(value, name, shorthand, usage)
935}
936
937// fail prints an error message and usage message to standard error and
938// returns the error.

Callers

nothing calls this directly

Calls 1

VarPMethod · 0.80

Tested by

no test coverage detected