mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-13 14:39:28 +00:00
PT-73 Fixed help flag
This commit is contained in:
@@ -155,8 +155,7 @@ func main() {
|
||||
log.Errorf("error processing commad line arguments: %s", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
if opts.Help {
|
||||
getopt.Usage()
|
||||
if opts == nil && err == nil {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -540,7 +539,8 @@ func getOptions() (*options, error) {
|
||||
gop.Parse(gop.Args())
|
||||
}
|
||||
if opts.Help {
|
||||
return opts, nil
|
||||
gop.PrintUsage(os.Stdout)
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
if gop.IsSet("order-by") {
|
||||
|
Reference in New Issue
Block a user