Remove exit error handler because it causes duplicated help text

This commit is contained in:
Elara 2022-03-15 16:06:05 -07:00
parent 62597f70ee
commit 205a041758

View File

@ -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)