mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-04 19:17:37 +08:00
cmd/gocq: switch faststart
over to a flag
This commit is contained in:
parent
1f55bde728
commit
f88f51ceed
@ -115,8 +115,6 @@ func Main() {
|
||||
byteKey = []byte(arg[p])
|
||||
para.Hide(p)
|
||||
}
|
||||
case "faststart":
|
||||
base.FastStart = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user