Skip to content

Commit

Permalink
Names -> Aliases in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jszwedko committed Mar 23, 2015
1 parent 2bcd11f commit 6c6d93d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,23 +210,23 @@ Subcommands can be defined for a more git-like command line app.
app.Commands = []cli.Command{
{
Name: "add",
Names: []string{"a"},
Aliases: []string{"a"},
Usage: "add a task to the list",
Action: func(c *cli.Context) {
println("added task: ", c.Args().First())
},
},
{
Name: "complete",
Names: []string{"c"},
Aliases: []string{"c"},
Usage: "complete a task on the list",
Action: func(c *cli.Context) {
println("completed task: ", c.Args().First())
},
},
{
Name: "template",
Names: []string{"r"},
Aliases: []string{"r"},
Usage: "options for task templates",
Subcommands: []cli.Command{
{
Expand Down Expand Up @@ -263,7 +263,7 @@ app.EnableBashCompletion = true
app.Commands = []cli.Command{
{
Name: "complete",
Names: []string{"c"},
Aliases: []string{"c"},
Usage: "complete a task on the list",
Action: func(c *cli.Context) {
println("completed task: ", c.Args().First())
Expand Down

0 comments on commit 6c6d93d

Please sign in to comment.