protected function execute(InputInterface $input, OutputInterface $output)
    {
        $fileToConvert = $this->determineFile($output, $input->getArgument('file'));
        $newFormat = $input->getArgument('format');

        $newConfig = $this
            ->getContainer()
            ->get('tuck_converter.config_format_converter')
            ->convertFile($fileToConvert, $newFormat);

        if ($input->getOption('output')) {
            $output->write($newConfig);
        } else {
            $this->writeToFile($output, $fileToConvert, $newConfig, $newFormat);
        }
    }