StringVarP is like StringVar, but accepts a shorthand letter that can be used after a single dash.
(p *string, name, shorthand string, value string, usage string)
| 39 | |
| 40 | // StringVarP is like StringVar, but accepts a shorthand letter that can be used after a single dash. |
| 41 | func (f *FlagSet) StringVarP(p *string, name, shorthand string, value string, usage string) { |
| 42 | f.VarP(newStringValue(value, p), name, shorthand, usage) |
| 43 | } |
| 44 | |
| 45 | // StringVar defines a string flag with specified name, default value, and usage string. |
| 46 | // The argument p points to a string variable in which to store the value of the flag. |
no test coverage detected