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:
parent
1f55bde728
commit
f88f51ceed
@ -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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user