protected function execute(InputInterface $input, OutputInterface $output) { $name = $input->getArgument('name'); $text = 'Hello'; if ($name) { $text .= ' ' . $name; } if ($input->getOption('yell')) { $text = strtoupper($text); } $output->writeln($text); }