Browse Source

Merge pull request #3517 from WouterJ/patch-2

Added deprecated warning for the dev option
Jordi Boggiano 10 years ago
parent
commit
b39e0a271f
2 changed files with 8 additions and 0 deletions
  1. 4 0
      src/Composer/Command/InstallCommand.php
  2. 4 0
      src/Composer/Command/UpdateCommand.php

+ 4 - 0
src/Composer/Command/InstallCommand.php

@@ -75,6 +75,10 @@ EOT
             $input->setOption('no-plugins', true);
         }
 
+        if ($input->getOption('dev')) {
+            $output->writeln('<warning>You are using the deprecated option "dev". Dev packages are installed by default now.</warning>');
+        }
+
         $composer = $this->getComposer(true, $input->getOption('no-plugins'));
         $composer->getDownloadManager()->setOutputProgress(!$input->getOption('no-progress'));
         $io = $this->getIO();

+ 4 - 0
src/Composer/Command/UpdateCommand.php

@@ -79,6 +79,10 @@ EOT
             $input->setOption('no-plugins', true);
         }
 
+        if ($input->getOption('dev')) {
+            $output->writeln('<warning>You are using the deprecated option "dev". Dev packages are installed by default now.</warning>');
+        }
+
         $composer = $this->getComposer(true, $input->getOption('no-plugins'));
         $composer->getDownloadManager()->setOutputProgress(!$input->getOption('no-progress'));
         $io = $this->getIO();