public function unregisterSubCommand($command)
    {
        if (! array_key_exists($command, $this->subCommands)) {
            throw new \Exception("A sub-command with the name {$command} does not exist.");
        }

        unset($this->subCommands[$command]);
    }
public function unregisterSubCommand($command)
    {
        if (! array_key_exists($command, $this->subCommands)) {
            throw new \Exception("A sub-command with the name {$command} does not exist.");
        }

        unset($this->subCommands[$command]);
    }
public function unregisterSubCommand ( $ command ) { if ( ! array_key_exists ( $ command , $ this -> subCommands ) ) { throw new \ Exception ( "A sub-command with the name {$command} does not exist." ) ; } unset ( $ this -> subCommands [ $ command ] ) ; }
Unregisters a sub-command.

@param string $command The command name.
Unregisters a sub - command .