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

Method UintVarP

uint.go:49–51  ·  view source on GitHub ↗

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

(p *uint, name, shorthand string, value uint, usage string)

Source from the content-addressed store, hash-verified

47
48// UintVarP is like UintVar, but accepts a shorthand letter that can be used after a single dash.
49func (f *FlagSet) UintVarP(p *uint, name, shorthand string, value uint, usage string) {
50 f.VarP(newUintValue(value, p), name, shorthand, usage)
51}
52
53// UintVar defines a uint flag with specified name, default value, and usage string.
54// The argument p points to a uint variable in which to store the value of the flag.

Callers 2

UintMethod · 0.95
UintPMethod · 0.95

Calls 2

VarPMethod · 0.95
newUintValueFunction · 0.85

Tested by

no test coverage detected