func (c *SuperCommand) RegisterDeprecated(subcmd Command, check DeprecationCheck) {
	if subcmd == nil {
		return
	}

	info := subcmd.Info()
	if check != nil && check.Obsolete() {
		logger.Infof("%q command not registered as it is obsolete", info.Name)
		return
	}
	c.insert(commandReference{name: info.Name, command: subcmd, check: check})
	for _, name := range info.Aliases {
		c.insert(commandReference{name: name, command: subcmd, alias: info.Name, check: check})
	}
}
// RegisterDeprecated makes a subcommand available for use on the command line if it
// is not obsolete.  It inserts the command with the specified DeprecationCheck so
// that a warning is displayed if the command is deprecated.
RegisterDeprecated makes a subcommand available for use on the command line if it
is not obsolete.  It inserts the command with the specified DeprecationCheck so
that a warning is displayed if the command is deprecated.
// RegisterDeprecated makes a subcommand available for use on the command line if it // is not obsolete . It inserts the command with the specified DeprecationCheck so // that a warning is displayed if the command is deprecated .
func (c *SuperCommand) RegisterDeprecated(subcmd Command, check DeprecationCheck) {
	if subcmd == nil {
		return
	}
	info := subcmd.Info()
	if check != nil && check.Obsolete() {
		logger.Infof("%q command not registered as it is obsolete", info.Name)
		return
	}
	c.insert(commandReference{name: info.Name, command: subcmd, check: check})
	for _, name := range info.Aliases {
		c.insert(commandReference{name: name, command: subcmd, alias: info.Name, check: check})
	}
}
func ( c * SuperCommand ) RegisterDeprecated ( subcmd Command , check DeprecationCheck ) { if subcmd == nil { return } info := subcmd . Info ( ) if check != nil && check . Obsolete ( ) { logger . Infof ( " " , info . Name ) return } c . insert ( commandReference { name : info . Name , command : subcmd , check : check } ) for _ , name := range info . Aliases { c . insert ( commandReference { name : name , command : subcmd , alias : info . Name , check : check } ) } }
RegisterDeprecated makes a subcommand available for use on the command line if it
is not obsolete.
RegisterDeprecated makes a subcommand available for use on the command line if it is not obsolete .