[FEATURE] Switch back to cobra's StringArray flag #473
Labels
dependency
Issue concerns some dependency or external library/module
enhancement
New feature or request
priority/high
scope/cli
Issue concerns the CLI (cmd/)
Milestone
As of v4.1.0, we're using cobra's StringSlice flags for repeatable flags, so that it works with viper's
GetStringSlice
function.However, this splits flag values into different slice parts, even if it's a single part.
E.g.
--env X=a,b,c
would be treated the same as--env X=a
,--env b
,--env c
We should revert to
StringArray
type flags once spf13/viper#246 and spf13/viper#398 are resolved.The text was updated successfully, but these errors were encountered: