tidb-server: handle the help manually (#24073)

This commit is contained in:
xhe
2021-04-16 13:41:52 +08:00
committed by GitHub
parent 281d134657
commit cd25915b51

View File

@ -151,7 +151,12 @@ var (
)
func main() {
help := flag.Bool("help", false, "show the usage")
flag.Parse()
if *help {
flag.Usage()
os.Exit(0)
}
if *version {
fmt.Println(printer.GetTiDBInfo())
os.Exit(0)