StringArrayVarP is like StringArrayVar, but accepts a shorthand letter that can be used after a single dash.
(p *[]string, name, shorthand string, value []string, usage string)
| 81 | |
| 82 | // StringArrayVarP is like StringArrayVar, but accepts a shorthand letter that can be used after a single dash. |
| 83 | func (f *FlagSet) StringArrayVarP(p *[]string, name, shorthand string, value []string, usage string) { |
| 84 | f.VarP(newStringArrayValue(value, p), name, shorthand, usage) |
| 85 | } |
| 86 | |
| 87 | // StringArrayVar defines a string flag with specified name, default value, and usage string. |
| 88 | // The argument p points to a []string variable in which to store the value of the flag. |
no test coverage detected