Skip to content

Commit

Permalink
cherry pick #24073 to release-5.0
Browse files Browse the repository at this point in the history
Signed-off-by: ti-srebot <[email protected]>
  • Loading branch information
xhebox authored and ti-srebot committed Apr 16, 2021
1 parent 4c49754 commit 70a5b22
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tidb-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 70a5b22

Please sign in to comment.