protected function execute(InputInterface $input, OutputInterface $output) { try { $this->repository->add($input->getArgument('title'), $input->getArgument('description')); } catch (Exception $e) { $output->writeln('Something went wrong'); } }