1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-06-30 20:03:24 +00: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
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 {