#!/usr/bin/env php addCommand($command); array_splice($argv, 1, 0, $command->commandName()); $caller = new Caller(); $caller->setScript(current($argv)); $caller->setCommand(next($argv)); $caller->setParams($argv); reset($argv); echo CommandManager::getInstance()->run($caller);