Fix example that uses ExitCoder

This commit is contained in:
Dan Buch
2016-05-25 12:07:49 -04:00
parent 3d75e9e711
commit ed8f4ac408

View File

@@ -498,7 +498,7 @@ func main() {
} }
app.Action = func(ctx *cli.Context) error { app.Action = func(ctx *cli.Context) error {
if !ctx.Bool("ginger-crouton") { if !ctx.Bool("ginger-crouton") {
return cli.NewExitError("it is not in the soup", 86) return cli.Exit("it is not in the soup", 86)
} }
return nil return nil
} }