1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-05 03:23:49 +08:00

cmd/gocq: switch faststart over to a flag

This commit is contained in:
wdvxdr 2022-02-06 16:04:03 +08:00
parent 1f55bde728
commit f88f51ceed
No known key found for this signature in database
GPG Key ID: 703F8C071DE7A1B6
2 changed files with 1 additions and 2 deletions

View File

@ -115,8 +115,6 @@ func Main() {
byteKey = []byte(arg[p]) byteKey = []byte(arg[p])
para.Hide(p) para.Hide(p)
} }
case "faststart":
base.FastStart = true
} }
} }
} }

View File

@ -64,6 +64,7 @@ func Parse() {
flag.BoolVar(&LittleH, "h", false, "this Help") flag.BoolVar(&LittleH, "h", false, "this Help")
flag.StringVar(&LittleWD, "w", "", "cover the working directory") flag.StringVar(&LittleWD, "w", "", "cover the working directory")
d := flag.Bool("D", false, "debug mode") d := flag.Bool("D", false, "debug mode")
flag.BoolVar(&FastStart, "faststart", false, "skip waiting 5 seconds")
flag.Parse() flag.Parse()
if *d { if *d {