protected function execute(InputInterface $input, OutputInterface $output) { try { $options = $this->prepareOptions($input->getOptions()); $this->scanAndParse($options); $this->generate($options); return 0; } catch (\Exception $e) { $output->writeln(sprintf(PHP_EOL . '<error>%s</error>', $e->getMessage())); return 1; } }