StringArrayP is like StringArray, but accepts a shorthand letter that can be used after a single dash.
(name, shorthand string, value []string, usage string)
| 107 | |
| 108 | // StringArrayP is like StringArray, but accepts a shorthand letter that can be used after a single dash. |
| 109 | func (f *FlagSet) StringArrayP(name, shorthand string, value []string, usage string) *[]string { |
| 110 | p := []string{} |
| 111 | f.StringArrayVarP(&p, name, shorthand, value, usage) |
| 112 | return &p |
| 113 | } |
| 114 | |
| 115 | // StringArray defines a string flag with specified name, default value, and usage string. |
| 116 | // The return value is the address of a []string variable that stores the value of the flag. |
no test coverage detected