diff --git a/src/Composer/Command/InstallCommand.php b/src/Composer/Command/InstallCommand.php index dc1c7d7b7..f11510e0e 100644 --- a/src/Composer/Command/InstallCommand.php +++ b/src/Composer/Command/InstallCommand.php @@ -39,8 +39,8 @@ class InstallCommand extends Command ->setDefinition(array( new InputOption('dev', null, InputOption::VALUE_NONE, 'Forces installation from package sources when possible, including VCS information.'), new InputOption('dry-run', null, InputOption::VALUE_NONE, 'Outputs the operations but will not execute anything (implicitly enables --verbose).'), - new InputOption('required-only', null, InputOption::VALUE_NONE, 'Installs required packages only (ignored when installing from an existing lock file).'), - new InputOption('include-suggested', null, InputOption::VALUE_NONE, 'Includes suggested packages (ignored when installing from an existing lock file).'), + new InputOption('no-install-recommends', null, InputOption::VALUE_NONE, 'Do not install recommended packages (ignored when installing from an existing lock file).'), + new InputOption('install-suggests', null, InputOption::VALUE_NONE, 'Also install suggested packages (ignored when installing from an existing lock file).'), )) ->setHelp(<<install command reads the composer.json file from the @@ -185,8 +185,8 @@ EOT private function collectLinks(InputInterface $input, PackageInterface $package) { - $requiredOnly = (Boolean) $input->getOption('required-only'); - $includeSuggested = (Boolean) $input->getOption('include-suggested'); + $requiredOnly = (Boolean) $input->getOption('no-install-recommends'); + $includeSuggested = (Boolean) $input->getOption('install-suggests'); $links = $package->getRequires(); diff --git a/src/Composer/Command/UpdateCommand.php b/src/Composer/Command/UpdateCommand.php index 34a3a63ff..4384b955f 100644 --- a/src/Composer/Command/UpdateCommand.php +++ b/src/Composer/Command/UpdateCommand.php @@ -36,8 +36,8 @@ class UpdateCommand extends Command ->setDefinition(array( new InputOption('dev', null, InputOption::VALUE_NONE, 'Forces installation from package sources when possible, including VCS information.'), new InputOption('dry-run', null, InputOption::VALUE_NONE, 'Outputs the operations but will not execute anything (implicitly enables --verbose).'), - new InputOption('required-only', null, InputOption::VALUE_NONE, 'Installs required packages only.'), - new InputOption('include-suggested', null, InputOption::VALUE_NONE, 'Includes suggested packages.'), + new InputOption('no-install-recommends', null, InputOption::VALUE_NONE, 'Do not install recommended packages.'), + new InputOption('install-suggests', null, InputOption::VALUE_NONE, 'Also install suggested packages.'), )) ->setHelp(<<update command reads the composer.json file from the