diff --git a/tidb-server/main.go b/tidb-server/main.go index e29b946085346..9c8a30da3258d 100644 --- a/tidb-server/main.go +++ b/tidb-server/main.go @@ -158,7 +158,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)