Skip to content

Commit

Permalink
Merge pull request #823 from xordspar0/master
Browse files Browse the repository at this point in the history
Make the exit code example more clear
  • Loading branch information
Lynn Cyrin (they/them) committed Aug 4, 2019
2 parents d09efb5 + c25e4ca commit 26945c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -902,14 +902,14 @@ import (
func main() {
app := cli.NewApp()
app.Flags = []cli.Flag{
cli.BoolTFlag{
cli.BoolFlag{
Name: "ginger-crouton",
Usage: "is it in the soup?",
Usage: "Add ginger croutons to the soup",
},
}
app.Action = func(ctx *cli.Context) error {
if !ctx.Bool("ginger-crouton") {
return cli.NewExitError("it is not in the soup", 86)
return cli.NewExitError("Ginger croutons are not in the soup", 86)
}
return nil
}
Expand Down

0 comments on commit 26945c5

Please sign in to comment.