func (c *SuperCommand) RegisterAlias(name, forName string, check DeprecationCheck) {
	if check != nil && check.Obsolete() {
		logger.Infof("%q alias not registered as it is obsolete", name)
		return
	}
	action, found := c.subcmds[forName]
	if !found {
		panic(fmt.Sprintf("%q not found when registering alias", forName))
	}
	c.insert(commandReference{
		name:    name,
		command: action.command,
		alias:   forName,
		check:   check,
	})
}
// RegisterAlias makes an existing subcommand available under another name.
// If `check` is supplied, and the result of the `Obsolete` call is true,
// then the alias is not registered.
RegisterAlias makes an existing subcommand available under another name.
If `check` is supplied, and the result of the `Obsolete` call is true,
then the alias is not registered.
// RegisterAlias makes an existing subcommand available under another name . // If ` check ` is supplied and the result of the ` Obsolete ` call is true // then the alias is not registered .
func (c *SuperCommand) RegisterAlias(name, forName string, check DeprecationCheck) {
	if check != nil && check.Obsolete() {
		logger.Infof("%q alias not registered as it is obsolete", name)
		return
	}
	action, found := c.subcmds[forName]
	if !found {
		panic(fmt.Sprintf("%q not found when registering alias", forName))
	}
	c.insert(commandReference{
		name:    name,
		command: action.command,
		alias:   forName,
		check:   check,
	})
}
func ( c * SuperCommand ) RegisterAlias ( name , forName string , check DeprecationCheck ) { if check != nil && check . Obsolete ( ) { logger . Infof ( " " , name ) return } action , found := c . subcmds [ forName ] if ! found { panic ( fmt . Sprintf ( " " , forName ) ) } c . insert ( commandReference { name : name , command : action . command , alias : forName , check : check , } ) }
RegisterAlias makes an existing subcommand available under another name.
RegisterAlias makes an existing subcommand available under another name .