app, help: add backwards compatibility for Authors

This commit is contained in:
Harrison
2015-02-21 10:44:00 +11:00
parent 05ecd63a95
commit c6592bb487
3 changed files with 16 additions and 4 deletions

View File

@@ -21,8 +21,9 @@ func ExampleApp() {
app.Action = func(c *cli.Context) {
fmt.Printf("Hello %v\n", c.String("name"))
}
app.Author = "Harrison"
app.Email = "harrison@lolwut.com"
app.Authors = []cli.Author{{"Oliver Allen", "oliver@toyshop.com"}}
app.Run(os.Args)
// Output:
// Hello Jeremy