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

Method Uint16VarP

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

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

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

Source from the content-addressed store, hash-verified

47
48// Uint16VarP is like Uint16Var, but accepts a shorthand letter that can be used after a single dash.
49func (f *FlagSet) Uint16VarP(p *uint16, name, shorthand string, value uint16, usage string) {
50 f.VarP(newUint16Value(value, p), name, shorthand, usage)
51}
52
53// Uint16Var 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

Uint16Method · 0.95
Uint16PMethod · 0.95

Calls 2

VarPMethod · 0.95
newUint16ValueFunction · 0.85

Tested by

no test coverage detected