public function setDefaultCommand($commandName, $isSingleCommand = false) { $this->defaultCommand = $commandName; if ($isSingleCommand) { // Ensure the command exist $this->find($commandName); $this->singleCommand = true; } return $this; }
/** * @return Application */ public function create() { $app = new Application(Message::NAME, Message::VERSION); $app->setDefaultCommand(Message::COMMAND); $app->add($this->createAnalyzeCommand()); return $app; }