Skip to content

Commit

Permalink
cmd/gocq: switch faststart over to a flag
Browse files Browse the repository at this point in the history
  • Loading branch information
wdvxdr1123 committed Feb 6, 2022
1 parent 1f55bde commit f88f51c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions cmd/gocq/main.go
Expand Up @@ -115,8 +115,6 @@ func Main() {
byteKey = []byte(arg[p])
para.Hide(p)
}
case "faststart":
base.FastStart = true
}
}
}
Expand Down
1 change: 1 addition & 0 deletions internal/base/flag.go
Expand Up @@ -64,6 +64,7 @@ func Parse() {
flag.BoolVar(&LittleH, "h", false, "this Help")
flag.StringVar(&LittleWD, "w", "", "cover the working directory")
d := flag.Bool("D", false, "debug mode")
flag.BoolVar(&FastStart, "faststart", false, "skip waiting 5 seconds")
flag.Parse()

if *d {
Expand Down

0 comments on commit f88f51c

Please sign in to comment.