StringArrayFlag defines a flag with the specified name and usage string. The return value is the address of a `StringArrayFlags` variable that stores the repeated values of the flag.
(f flagInterface, name string, usage string)
| 13 | // StringArrayFlag defines a flag with the specified name and usage string. |
| 14 | // The return value is the address of a `StringArrayFlags` variable that stores the repeated values of the flag. |
| 15 | func StringArrayFlag(f flagInterface, name string, usage string) *StringArrayFlags { |
| 16 | value := &StringArrayFlags{} |
| 17 | f.Var(value, name, usage) |
| 18 | return value |
| 19 | } |
| 20 | |
| 21 | // StringArrayFlags is a wrapper of `[]string` to provider an interface for `flag.Var` |
| 22 | type StringArrayFlags []string |