Skip to content

Commit

Permalink
修复配置文件生成bug fix #118
Browse files Browse the repository at this point in the history
  • Loading branch information
keac committed May 17, 2024
1 parent 87ad8f3 commit a2fc0b1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions common/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ import (

func Parse(options *ENOptions) {

if options.KeyWord == "" && options.CompanyID == "" && options.InputFile == "" {
flag.PrintDefaults()
os.Exit(0)
}

//DEBUG模式设定
if options.IsDebug {
gologger.DefaultLogger.SetMaxLevel(levels.LevelDebug)
Expand Down Expand Up @@ -57,6 +52,11 @@ func Parse(options *ENOptions) {
gologger.Fatal().Msgf("配置文件当前[V%.1f] 程序需要[V%.1f] 不匹配,请备份配置文件重新运行-v\n", conf.Version, cfgYV)
}

if options.KeyWord == "" && options.CompanyID == "" && options.InputFile == "" {
flag.PrintDefaults()
os.Exit(0)
}

//初始化输出文件夹位置
if options.Output == "" {
options.Output = "outs"
Expand All @@ -82,7 +82,7 @@ func Parse(options *ENOptions) {

//如果是指定全部数据
if options.ScanType == "all" {
options.GetType = []string{"aqc", "tyc"}
options.GetType = []string{"aqc", "xlb", "qcc", "tyc", "qcc"}
options.IsMergeOut = true
} else if options.ScanType != "" {
options.GetType = strings.Split(options.ScanType, ",")
Expand Down

0 comments on commit a2fc0b1

Please sign in to comment.