StringArrayVar defines a string flag with specified name, default value, and usage string. The argument p points to a []string variable in which to store the values of the multiple flags. The value of each argument will not try to be separated by comma. Use a StringSlice for that.
(p *[]string, name string, value []string, usage string)
| 76 | // The argument p points to a []string variable in which to store the values of the multiple flags. |
| 77 | // The value of each argument will not try to be separated by comma. Use a StringSlice for that. |
| 78 | func (f *FlagSet) StringArrayVar(p *[]string, name string, value []string, usage string) { |
| 79 | f.VarP(newStringArrayValue(value, p), name, "", usage) |
| 80 | } |
| 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) { |