File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,6 @@ const (
2828 dbSQLServer DBType = "sqlserver"
2929 dbClickHouse DBType = "clickhouse"
3030)
31- const (
32- // DefaultOutPath default path
33- DefaultOutPath = "./dao/query"
34- )
3531
3632// CmdParams is command line parameters
3733type CmdParams struct {
@@ -133,6 +129,8 @@ func argParse() *CmdParams {
133129 if * genPath != "" {
134130 if configFileParams , err := loadConfigFile (* genPath ); err == nil && configFileParams != nil {
135131 cmdParse = * configFileParams
132+ } else if err != nil {
133+ log .Fatalf ("loadConfigFile fail %s" , err .Error ())
136134 }
137135 }
138136 // cmd first
@@ -148,7 +146,7 @@ func argParse() *CmdParams {
148146 if * onlyModel {
149147 cmdParse .OnlyModel = true
150148 }
151- if * outPath != DefaultOutPath {
149+ if * outPath != "" {
152150 cmdParse .OutPath = * outPath
153151 }
154152 if * outFile != "" {
You can’t perform that action at this time.
0 commit comments