/** * Configure the command options. * * @param ConsoleCommand $command * * @throws \Acacha\Llum\Exceptions\InvalidCommandException */ protected function configureCommand(ConsoleCommand $command) { $this->ignoreValidationErrors(); $name = $command->name(); $description = $command->description(); if (!is_string($name) || !is_string($description)) { throw new InvalidCommandException(); } $this->setName($name)->setDescription($description); if ($command->argument() != null) { $this->addArgument($command->argument()['name'], $command->argument()['type'], $command->argument()['description']); } }