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)
| 117 | |
| 118 | // StringToIntVarP is like StringToIntVar, but accepts a shorthand letter that can be used after a single dash. |
| 119 | func StringToIntVarP(p *map[string]int, name, shorthand string, value map[string]int, usage string) { |
| 120 | CommandLine.VarP(newStringToIntValue(value, p), name, shorthand, usage) |
| 121 | } |
| 122 | |
| 123 | // StringToInt defines a string flag with specified name, default value, and usage string. |
| 124 | // The return value is the address of a map[string]int variable that stores the value of the flag. |
nothing calls this directly
no test coverage detected
searching dependent graphs…