func (c *SuperCommand) Register(subcmd Command) {
	info := subcmd.Info()
	c.insert(commandReference{name: info.Name, command: subcmd})
	for _, name := range info.Aliases {
		c.insert(commandReference{name: name, command: subcmd, alias: info.Name})
	}
}
// Register makes a subcommand available for use on the command line. The
// command will be available via its own name, and via any supplied aliases.
Register makes a subcommand available for use on the command line. The
command will be available via its own name, and via any supplied aliases.
// Register makes a subcommand available for use on the command line . The // command will be available via its own name and via any supplied aliases .
func (c *SuperCommand) Register(subcmd Command) {
	info := subcmd.Info()
	c.insert(commandReference{name: info.Name, command: subcmd})
	for _, name := range info.Aliases {
		c.insert(commandReference{name: name, command: subcmd, alias: info.Name})
	}
}
func ( c * SuperCommand ) Register ( subcmd Command ) { info := subcmd . Info ( ) c . insert ( commandReference { name : info . Name , command : subcmd } ) for _ , name := range info . Aliases { c . insert ( commandReference { name : name , command : subcmd , alias : info . Name } ) } }
Register makes a subcommand available for use on the command line.
Register makes a subcommand available for use on the command line .