Browse Source

fix: product config cmd tool product argument matching

luzhenqian 4 years ago
parent
commit
f14f6af68d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/pdcfg/product.go

+ 1 - 1
tools/pdcfg/product.go

@@ -82,7 +82,7 @@ func DoProductCommand(args []string) error {
 		return errors.New("command arguments not enough!")
 	}
 
-	op := strings.Replace(args[0], "\n", "", -1)
+	op := strings.TrimSpace(args[0])
 
 	switch op {
 	case "add":