fix whitespace

This commit is contained in:
Mr Rogers 2014-02-19 16:37:20 -05:00
parent a70d0bb136
commit 1ccba5fbb5

View File

@ -34,28 +34,28 @@ func ExampleAppHelp() {
cli.StringFlag{Name: "name", Value: "bob", Usage: "a name to say"}, cli.StringFlag{Name: "name", Value: "bob", Usage: "a name to say"},
} }
app.Commands = []cli.Command{ app.Commands = []cli.Command{
{ {
Name: "describeit", Name: "describeit",
ShortName: "d", ShortName: "d",
Usage: "use it to see a description", Usage: "use it to see a description",
Description: "This is how we describe describeit the function", Description: "This is how we describe describeit the function",
Action: func(c *cli.Context) { Action: func(c *cli.Context) {
fmt.Printf("i like to describe things") fmt.Printf("i like to describe things")
}, },
}, },
} }
app.Run(os.Args) app.Run(os.Args)
// Output: // Output:
// NAME: // NAME:
// describeit - use it to see a description // describeit - use it to see a description
// //
// USAGE: // USAGE:
// command describeit [command options] [arguments...] // command describeit [command options] [arguments...]
// //
// DESCRIPTION: // DESCRIPTION:
// This is how we describe describeit the function // This is how we describe describeit the function
// //
// OPTIONS: // OPTIONS:
} }
func TestApp_Run(t *testing.T) { func TestApp_Run(t *testing.T) {