Fix example.

This commit is contained in:
Alec Thomas
2018-06-21 23:22:29 +10:00
parent a2ec050947
commit 7e022e20b0
+3 -1
View File
@@ -80,6 +80,8 @@ func main() {
ctx.App.Printf("1.0.0").Exit(0)
return nil
}))
err := parser.Run(os.Args[1:], "ofo")
ctx, err := parser.Parse(os.Args[1:])
parser.FatalIfErrorf(err)
err = ctx.Run(&cli.Globals)
parser.FatalIfErrorf(err)
}