agola cmd: check possible Help function error

This commit is contained in:
Simone Gotti 2019-07-02 13:44:43 +02:00
parent 540f5888d2
commit d8a92ba0d1
1 changed files with 5 additions and 1 deletions

View File

@ -47,7 +47,11 @@ var cmdAgola = &cobra.Command{
level.SetLevel(zapcore.DebugLevel)
}
},
Run: func(c *cobra.Command, args []string) { c.Help() },
Run: func(c *cobra.Command, args []string) {
if err := c.Help(); err != nil {
log.Fatal(err)
}
},
}
type agolaOptions struct {