StringToIntVarP is like StringToIntVar, but accepts a shorthand letter that can be used after a single dash.
(p *map[string]int, name, shorthand string, value map[string]int, usage string)
| 105 | |
| 106 | // StringToIntVarP is like StringToIntVar, but accepts a shorthand letter that can be used after a single dash. |
| 107 | func (f *FlagSet) StringToIntVarP(p *map[string]int, name, shorthand string, value map[string]int, usage string) { |
| 108 | f.VarP(newStringToIntValue(value, p), name, shorthand, usage) |
| 109 | } |
| 110 | |
| 111 | // StringToIntVar defines a string flag with specified name, default value, and usage string. |
| 112 | // The argument p points to a map[string]int variable in which to store the value of the flag. |
no test coverage detected