Acacha\Llum\Console\LlumCommand::configureCommand PHP Method

configureCommand() protected method

Configure the command options.
protected configureCommand ( ConsoleCommand $command )
$command ConsoleCommand
    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']);
        }
    }