(value string)
| 151 | } |
| 152 | |
| 153 | func (e *enumMultiValue) Set(value string) error { |
| 154 | items := strings.Split(value, ",") |
| 155 | for _, item := range items { |
| 156 | if !isIncluded(item, e.options) { |
| 157 | return fmt.Errorf("valid values are %s", formatValuesForUsageDocs(e.options)) |
| 158 | } |
| 159 | } |
| 160 | *e.value = append(*e.value, items...) |
| 161 | return nil |
| 162 | } |
| 163 | |
| 164 | func (e *enumMultiValue) String() string { |
| 165 | if len(*e.value) == 0 { |
nothing calls this directly
no test coverage detected