Skip to content

Commit

Permalink
Update gentool.go
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzhu authored Apr 26, 2023
1 parent 312e88c commit 11e91cb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tools/gentool/gentool.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ const (
dbClickHouse DBType = "clickhouse"
)

const (
// DefaultOutPath default path
DefaultOutPath = "./dao/query"
)

// CmdParams is command line parameters
type CmdParams struct {
DSN string `yaml:"dsn"` // consult[https://gorm.io/docs/connecting_to_the_database.html]"
Expand Down Expand Up @@ -151,7 +146,7 @@ func argParse() *CmdParams {
if *onlyModel {
cmdParse.OnlyModel = true
}
if flag.Lookup("outPath") != nil {
if *outPath != "" {
cmdParse.OutPath = *outPath
}
if *outFile != "" {
Expand Down

0 comments on commit 11e91cb

Please sign in to comment.