Merge pull request #61 from cab/master

Subcommand example used non-existent function
This commit is contained in:
Jeremy Saenz 2014-01-08 08:08:44 -08:00
commit c606efc92b

View File

@ -176,7 +176,7 @@ app.Commands = []cli.Command{
ShortName: "a",
Usage: "add a task to the list",
Action: func(c *cli.Context) {
println("added task: ", c.FirstArg())
println("added task: ", c.Args().First())
},
},
{
@ -184,7 +184,7 @@ app.Commands = []cli.Command{
ShortName: "c",
Usage: "complete a task on the list",
Action: func(c *cli.Context) {
println("completed task: ", c.FirstArg())
println("completed task: ", c.Args().First())
},
},
}