func (cmd *Command) Name() string {
	name := strings.TrimSpace(cmd.UsageLine)
	if i := strings.Index(name, " "); i >= 0 {
		name = name[:i]
	}
	return name
}
Get name from the usage line. The name is the first word on the usage line.
package gocli
import (
	"bytes"
	"flag"
	"fmt"
	"os"
	"strings"
	"text/tabwriter"
	"text/template"
)
type Command struct {
	UsageLine string
	Short     string
	Long      string
	Action    func(cmd *Command, args []string)
	Flags flag.FlagSet
	Subcmds []*Command
	helpTemplate     string
	helpTemplateData interface{}
}