--TEST-- Single Application can be executed --ARGS-- You --FILE-- addArgument('who', InputArgument::OPTIONAL, 'Who', 'World') ->setCode(function (InputInterface $input, OutputInterface $output): int { $output->writeln(sprintf('Hello %s!', $input->getArgument('who'))); return 0; }) ->run() ; ?> --EXPECT-- Hello You!