agola cmd: check possible Help function error
This commit is contained in:
parent
540f5888d2
commit
d8a92ba0d1
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue