Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (13 sloc) 282 Bytes
package command
import "regexp"
type MultiArg []string
func (v *MultiArg) String() string {
return ""
}
func (v *MultiArg) Set(raw string) error {
parts := regexp.MustCompile(`[\s]*,[\s]*`).Split(raw, -1)
for _, part := range parts {
*v = append(*v, part)
}
return nil
}
You can’t perform that action at this time.