@ -492,9 +492,7 @@ func main() {
Usage: "Load configuration from `FILE`",
},
}
app.Commands = []cli.Command{
Commands: []*cli.Command{
{
Name: "complete",
Aliases: []string{"c"},
@ -511,6 +509,7 @@ func main() {
return nil
sort.Sort(cli.FlagsByName(app.Flags))
@ -56,7 +56,7 @@ type Command struct {
CustomHelpTemplate string
type CommandsByName []Command
type CommandsByName []*Command
func (c CommandsByName) Len() int {
return len(c)