1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-11 01:22:54 +00:00

Disable progress when no-ansi is specified, refs #3612

This commit is contained in:
Jordi Boggiano 2015-01-05 16:31:16 +00:00
parent e0d36e19eb
commit c58b7d917c
2 changed files with 16 additions and 0 deletions

View file

@ -100,6 +100,8 @@ EOT
*/
protected function initialize(InputInterface $input, OutputInterface $output)
{
parent::initialize($input, $output);
if ($input->getOption('global') && 'composer.json' !== $input->getOption('file')) {
throw new \RuntimeException('--file and --global can not be combined');
}