/**
* @param InputInterface $input
* @param OutputInterface $output
*
* @throws UnexpectedValueException
*/
protected function interact(InputInterface $input, OutputInterface $output)
{
parent::interact($input, $output);
if ((int) $input->getOption('ini-php') + (int) $input->getOption('ini-load') + (int) $input->getOption('ini-file') > 1) {
throw new UnexpectedValueException('Please use only one --ini-* option to set the data source.');
}
if ((count($input->getOption('filter-allowed')) > 0) + (count($input->getOption('filter-disallowed')) > 0) > 1) {
throw new UnexpectedValueException('Please use only one --filter-* option for the data source.');
}
}