Application.php
public function doRun(InputInterface $input, OutputInterface $output)
    {
        if (true === $input->hasParameterOption(array('--bash-completion'))) {
            $output->writeln($this->getBashCompletion());
            return 0;
        }

        return parent::doRun($input, $output);
    }
public function doRun(InputInterface $input, OutputInterface $output)
    {
        if (true === $input->hasParameterOption(array('--bash-completion'))) {
            $output->writeln($this->getBashCompletion());
            return 0;
        }

        return parent::doRun($input, $output);
    }
{@inheritdoc}