Kaynağa Gözat

fix: fix cmd config (#2181)

Signed-off-by: yisaer <disxiaofei@163.com>
Song Gao 1 yıl önce
ebeveyn
işleme
9abc919ffa
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 1 1
      cmd/kuiper/main.go
  2. 1 1
      cmd/kuiperd/main.go

+ 1 - 1
cmd/kuiper/main.go

@@ -64,7 +64,7 @@ var (
 )
 )
 
 
 func init() {
 func init() {
-	flag.StringVar(&loadFileType, "loadFileTye", "", "loadFileType indicates the how to load path")
+	flag.StringVar(&loadFileType, "loadFileType", "", "loadFileType indicates the how to load path")
 	flag.StringVar(&etcPath, "etc", "", "etc indicates the path of etc dir")
 	flag.StringVar(&etcPath, "etc", "", "etc indicates the path of etc dir")
 
 
 	flag.Parse()
 	flag.Parse()

+ 1 - 1
cmd/kuiperd/main.go

@@ -35,7 +35,7 @@ var (
 )
 )
 
 
 func init() {
 func init() {
-	flag.StringVar(&loadFileType, "loadFileTye", "", "loadFileType indicates the how to load path")
+	flag.StringVar(&loadFileType, "loadFileType", "", "loadFileType indicates the how to load path")
 	flag.StringVar(&etcPath, "etc", "", "etc indicates the path of etc dir")
 	flag.StringVar(&etcPath, "etc", "", "etc indicates the path of etc dir")
 	flag.StringVar(&dataPath, "data", "", "data indicates the path of data dir")
 	flag.StringVar(&dataPath, "data", "", "data indicates the path of data dir")
 	flag.StringVar(&logPath, "log", "", "log indicates the path of log dir")
 	flag.StringVar(&logPath, "log", "", "log indicates the path of log dir")