Enhance the map flag to support parsing input value contains entry delimiters

Enhance the map flag to support parsing input value contains entry delimiters

Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
This commit is contained in:
Wenkai Yin(尹文开)
2022-05-17 13:56:41 +08:00
parent 15851ac9aa
commit 44199db79d
5 changed files with 101 additions and 15 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ type controllerRunInfo struct {
func NewCommand(f client.Factory) *cobra.Command {
var (
volumeSnapshotLocations = flag.NewMap().WithKeyValueDelimiter(":")
volumeSnapshotLocations = flag.NewMap().WithKeyValueDelimiter(':')
logLevelFlag = logging.LogLevelFlag(logrus.InfoLevel)
config = serverConfig{
pluginDir: "/plugins",