• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /6.0.3/godeps/src/github.com/blevesearch/bleve/cmd/bleve/vendor/github.com/spf13/pflag/

Lines Matching defs:value

33 // GetUint return the uint value of a flag with the given name
42 // UintVar defines a uint flag with specified name, default value, and usage string.
43 // The argument p points to a uint variable in which to store the value of the flag.
44 func (f *FlagSet) UintVar(p *uint, name string, value uint, usage string) {
45 f.VarP(newUintValue(value, p), name, "", usage)
49 func (f *FlagSet) UintVarP(p *uint, name, shorthand string, value uint, usage string) {
50 f.VarP(newUintValue(value, p), name, shorthand, usage)
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.
55 func UintVar(p *uint, name string, value uint, usage string) {
56 CommandLine.VarP(newUintValue(value, p), name, "", usage)
60 func UintVarP(p *uint, name, shorthand string, value uint, usage string) {
61 CommandLine.VarP(newUintValue(value, p), name, shorthand, usage)
64 // Uint defines a uint flag with specified name, default value, and usage string.
65 // The return value is the address of a uint variable that stores the value of the flag.
66 func (f *FlagSet) Uint(name string, value uint, usage string) *uint {
68 f.UintVarP(p, name, "", value, usage)
73 func (f *FlagSet) UintP(name, shorthand string, value uint, usage string) *uint {
75 f.UintVarP(p, name, shorthand, value, usage)
79 // Uint defines a uint flag with specified name, default value, and usage string.
80 // The return value is the address of a uint variable that stores the value of the flag.
81 func Uint(name string, value uint, usage string) *uint {
82 return CommandLine.UintP(name, "", value, usage)
86 func UintP(name, shorthand string, value uint, usage string) *uint {
87 return CommandLine.UintP(name, shorthand, value, usage)