app, help: add support for multiple authors

This commit is contained in:
Harrison
2015-01-31 10:04:52 +11:00
parent e1712f3817
commit 3d7183307a
3 changed files with 24 additions and 11 deletions

View File

@@ -6,7 +6,7 @@ import (
"os"
"testing"
"github.com/codegangsta/cli"
"github.com/paked/cli"
)
func ExampleApp() {
@@ -21,6 +21,8 @@ func ExampleApp() {
app.Action = func(c *cli.Context) {
fmt.Printf("Hello %v\n", c.String("name"))
}
app.Authors = []cli.Author{{"Oliver Allen", "oliver@toyshop.com"}}
app.Run(os.Args)
// Output:
// Hello Jeremy