mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 19:44:21 +00:00
22 lines
377 B
Go
22 lines
377 B
Go
package config
|
|
|
|
import (
|
|
"flag"
|
|
"strings"
|
|
)
|
|
|
|
var _ flag.Value = (*ArrayFlags)(nil)
|
|
|
|
//ArrayFlags implements the flag/Value interface
|
|
//allowing to set multiple string flags with the same name
|
|
type ArrayFlags []string
|
|
|
|
func (i *ArrayFlags) String() string {
|
|
return strings.Join(*i, ";")
|
|
}
|
|
|
|
func (i *ArrayFlags) Set(value string) error {
|
|
*i = append(*i, value)
|
|
return nil
|
|
}
|