From daad50e530f8799aa8ef8e670130ed53fa83dca1 Mon Sep 17 00:00:00 2001 From: jszwedko Date: Mon, 16 Mar 2015 18:48:06 -0700 Subject: [PATCH] Turns out I didn't mean to add ExampleAppCommands at all --- app_test.go | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/app_test.go b/app_test.go index 2e5cdfb..4a40b89 100644 --- a/app_test.go +++ b/app_test.go @@ -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"}