Skip to content

Commit

Permalink
tidb-server: handle the help manually (#24073) (#24074)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-srebot authored Aug 30, 2021
1 parent 80e91ec commit dadca79
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 dadca79

Please sign in to comment.