Turns out I didn't mean to add ExampleAppCommands at all

This commit is contained in:
jszwedko 2015-03-16 18:48:06 -07:00
parent 474646abed
commit daad50e530

View File

@ -66,25 +66,6 @@ func ExampleAppSubcommand() {
// Hello, Jeremy
}
func ExampleAppCommands() {
// set args for examples sake
os.Args = []string{"greet", "--name", "Jeremy"}
app := cli.NewApp()
app.Name = "greet"
app.Flags = []cli.Flag{
cli.StringFlag{Name: "name", Value: "bob", Usage: "a name to say"},
}
app.Action = func(c *cli.Context) {
fmt.Printf("Hello %v\n", c.String("name"))
}
app.Author = "Harrison"
app.Email = "harrison@lolwut.com"
app.Run(os.Args)
// Output:
// Hello Jeremy
}
func ExampleAppHelp() {
// set args for examples sake
os.Args = []string{"greet", "h", "describeit"}