addArgument( 'email', InputArgument::REQUIRED, 'The email address', null, new EmailValidator() ); } /** * @inheritDoc */ protected function execute (InputInterface $input, OutputInterface $output): int { $output->writeln('' . $input->getArgument('email') . ''); return Command::SUCCESS; } }