addOption('dry-run', 'd', Console\Input\InputOption::VALUE_OPTIONAL, default: false); } public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output): int { $io = new Console\Style\SymfonyStyle($input, $output); $io->title('Generate Seeds'); $dryRun = $input->getOption('dry-run'); $this->seedGenerator->generate($io, $dryRun); return Console\Command\Command::SUCCESS; } }