|
@@ -30,6 +30,7 @@ type UniqueStringsValue struct {
|
|
|
// Implements "flag.Value" interface.
|
|
// Implements "flag.Value" interface.
|
|
|
// The values are set in order.
|
|
// The values are set in order.
|
|
|
func (us *UniqueStringsValue) Set(s string) error {
|
|
func (us *UniqueStringsValue) Set(s string) error {
|
|
|
|
|
+ us.Values = make(map[string]struct{})
|
|
|
for _, v := range strings.Split(s, ",") {
|
|
for _, v := range strings.Split(s, ",") {
|
|
|
us.Values[v] = struct{}{}
|
|
us.Values[v] = struct{}{}
|
|
|
}
|
|
}
|