diff --git a/cmd/mtcli/validate/options.go b/cmd/mtcli/validate/options.go index 8eb96c3a..d7d29f25 100644 --- a/cmd/mtcli/validate/options.go +++ b/cmd/mtcli/validate/options.go @@ -53,7 +53,7 @@ func (o *options) AddEnabledFlag(flags *pflag.FlagSet) { } func (o *options) AddExcludedNamespacesFlag(flags *pflag.FlagSet) { - flags.StringArrayVar( + flags.StringSliceVar( &o.ExcludedNamespaces, "excluded-namespaces", o.ExcludedNamespaces,