소스 검색

fix: product config cmd tool product argument matching

luzhenqian 4 년 전
부모
커밋
f14f6af68d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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":