Remove exit error handler because it causes duplicated help text
This commit is contained in:
parent
62597f70ee
commit
205a041758
@ -186,13 +186,6 @@ func main() {
|
|||||||
After: func(*cli.Context) error {
|
After: func(*cli.Context) error {
|
||||||
return client.Close()
|
return client.Close()
|
||||||
},
|
},
|
||||||
ExitErrHandler: func(c *cli.Context, err error) {
|
|
||||||
cli.ShowCommandHelp(c, c.Command.Name)
|
|
||||||
if err != nil {
|
|
||||||
log.Fatal().Msgf("%v", err)
|
|
||||||
}
|
|
||||||
os.Exit(0)
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
err := app.Run(os.Args)
|
err := app.Run(os.Args)
|
||||||
|
Loading…
Reference in New Issue
Block a user