protected function configure() { $command = new ConsoleCommand(); $command->name($this->commandName)->description($this->commandDescription); if ($this->argument != null) { $command->argument(['name' => $this->argument, 'description' => $this->argumentDescription, 'type' => $this->argumentType]); } $this->configureCommand($command); }
/** * Configure command. */ public function configure() { parent::configure(); $this->addArgument('name', InputArgument::OPTIONAL, 'Repository name')->addArgument('description', InputArgument::OPTIONAL, 'Repository description'); }