setName('chill:main:address-ref-lux') ->addOption('send-report-email', 's', InputOption::VALUE_REQUIRED, 'Email address where a list of unimported addresses can be send'); } protected function execute(InputInterface $input, OutputInterface $output): int { $this->addressImporter->import( $input->hasOption('send-report-email') ? $input->getOption('send-report-email') : null, ); return Command::SUCCESS; } }