StringToStringVarP is like StringToStringVar, but accepts a shorthand letter that can be used after a single dash.
(p *map[string]string, name, shorthand string, value map[string]string, usage string)
| 124 | |
| 125 | // StringToStringVarP is like StringToStringVar, but accepts a shorthand letter that can be used after a single dash. |
| 126 | func (f *FlagSet) StringToStringVarP(p *map[string]string, name, shorthand string, value map[string]string, usage string) { |
| 127 | f.VarP(newStringToStringValue(value, p), name, shorthand, usage) |
| 128 | } |
| 129 | |
| 130 | // StringToStringVar defines a string flag with specified name, default value, and usage string. |
| 131 | // The argument p points to a map[string]string variable in which to store the value of the flag. |
no test coverage detected