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

Method UintSliceVar

uint_slice.go:124–126  ·  view source on GitHub ↗

UintSliceVar defines a uintSlice flag with specified name, default value, and usage string. The argument p points to a []uint variable in which to store the value of the flag.

(p *[]uint, name string, value []uint, usage string)

Source from the content-addressed store, hash-verified

122// UintSliceVar defines a uintSlice flag with specified name, default value, and usage string.
123// The argument p points to a []uint variable in which to store the value of the flag.
124func (f *FlagSet) UintSliceVar(p *[]uint, name string, value []uint, usage string) {
125 f.VarP(newUintSliceValue(value, p), name, "", usage)
126}
127
128// UintSliceVarP is like UintSliceVar, but accepts a shorthand letter that can be used after a single dash.
129func (f *FlagSet) UintSliceVarP(p *[]uint, name, shorthand string, value []uint, usage string) {

Callers 2

setUpUISFlagSetFunction · 0.95

Calls 2

VarPMethod · 0.95
newUintSliceValueFunction · 0.85

Tested by 2

setUpUISFlagSetFunction · 0.76