public function renameCommand($command, $alias = NULL)
{
if (!$this->standalone) {
$this->forceStandalone();
}
if ($alias === NULL) {
$this->renamedCommands = $command;
} else {
if (!$this->renamedCommands) {
$this->renamedCommands = array();
}
$this->renamedCommands[$command] = $alias;
}
return $this;
}