setName('chill:main:address-ref-from-best-addresses') ->addArgument('lang', InputArgument::REQUIRED, "Language code, for example 'fr'") ->addArgument('list', InputArgument::IS_ARRAY, "The list to add, for example 'full', or 'extract' (dev) or '1xxx' (brussel CP)") ->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->postalCodeBEFromBestAddressImporter->import(); $this->addressImporter->import( $input->getArgument('lang'), $input->getArgument('list'), $input->hasOption('send-report-email') ? $input->getOption('send-report-email') : null ); return Command::SUCCESS; } }