Browse Source

Fix minimum-stability handling in InitCommand, fixes #1421

Jordi Boggiano 12 years ago
parent
commit
247b02d077
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/Composer/Command/InitCommand.php

+ 5 - 0
src/Composer/Command/InitCommand.php

@@ -89,6 +89,11 @@ EOT
             unset($options['author']);
         }
 
+        if (isset($options['stability'])) {
+            $options['minimum-stability'] = $options['stability'];
+            unset($options['stability']);
+        }
+
         $options['require'] = isset($options['require']) ? $this->formatRequirements($options['require']) : new \stdClass;
         if (array() === $options['require']) {
             $options['require'] = new \stdClass;