diff --git a/README.md b/README.md index 3a183b1..4b3ddb0 100644 --- a/README.md +++ b/README.md @@ -210,7 +210,7 @@ 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()) @@ -218,7 +218,7 @@ 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()) @@ -226,7 +226,7 @@ app.Commands = []cli.Command{ }, { Name: "template", - Names: []string{"r"}, + Aliases: []string{"r"}, Usage: "options for task templates", Subcommands: []cli.Command{ { @@ -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())