Make slice wrapping pattern more consistent

and move *Args out into its own file
This commit is contained in:
Dan Buch
2016-05-23 20:15:35 -04:00
parent 59cdedb334
commit 61710ff108
7 changed files with 113 additions and 101 deletions

View File

@@ -195,7 +195,7 @@ func (c *Command) startApp(ctx *Context) error {
app.categories = NewCommandCategories()
for _, command := range c.Subcommands {
app.categories = app.categories.AddCommand(command.Category, command)
app.categories.AddCommand(command.Category, command)
}
sort.Sort(app.categories)