Updating structs to use labels, adding tests for env stuff

This commit is contained in:
2014-07-11 18:13:10 -04:00
parent 97fd93272f
commit fc16c67be3
5 changed files with 396 additions and 9 deletions

View File

@@ -43,7 +43,11 @@ func ExampleAppSubcommand() {
Usage: "sends a greeting in english",
Description: "greets someone in english",
Flags: []cli.Flag{
cli.StringFlag{"name", "Bob", "Name of the person to greet"},
cli.StringFlag{
Name: "name",
Value: "Bob",
Usage: "Name of the person to greet",
},
},
Action: func(c *cli.Context) {
fmt.Println("Hello,", c.String("name"))