Merge remote-tracking branch 'origin/master'

This commit is contained in:
Anago GCB 2021-09-28 14:20:58 +00:00
commit b290671b1b

View File

@ -49,6 +49,12 @@ func runSchedulerCmd() error {
logs.InitLogs()
defer logs.FlushLogs()
err := command.ParseFlags(os.Args[1:])
if err != nil {
// when fail to parse flags, return error with the usage message.
return fmt.Errorf("%v\n%s", err, command.UsageString())
}
if err := command.Execute(); err != nil {
return err
}