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:
parent
e0d36e19eb
commit
c58b7d917c
2 changed files with 16 additions and 0 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue