Exit code #820
Labels
kind/bug
describes or fixes a bug
kind/documentation
describes a documentation update
status/claimed
someone has claimed this issue
package main
import (
"log"
"os"
"github.com/urfave/cli"
)
func main() {
app := cli.NewApp()
app.Flags = []cli.Flag{
cli.BoolTFlag{
Name: "ginger-crouton",
Usage: "is it in 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 nil
}
err := app.Run(os.Args)
if err != nil {
log.Fatal(err)
}
}
the line of 13 should be cli.BoolFlag{ not cli.BoolTFlag{
The text was updated successfully, but these errors were encountered: