|
@@ -31,6 +31,7 @@ class UpdateCommand extends Command
|
|
|
->setDefinition(array(
|
|
|
new InputArgument('packages', InputArgument::IS_ARRAY | InputArgument::OPTIONAL, 'Packages that should be updated, if not provided all packages are.'),
|
|
|
new InputOption('prefer-source', null, InputOption::VALUE_NONE, 'Forces installation from package sources when possible, including VCS information.'),
|
|
|
+ new InputOption('prefer-dist', null, InputOption::VALUE_NONE, 'Forces installation from package dist even for dev versions.'),
|
|
|
new InputOption('dry-run', null, InputOption::VALUE_NONE, 'Outputs the operations but will not execute anything (implicitly enables --verbose).'),
|
|
|
new InputOption('dev', null, InputOption::VALUE_NONE, 'Enables installation of dev-require packages.'),
|
|
|
new InputOption('no-custom-installers', null, InputOption::VALUE_NONE, 'Disables all custom installers.'),
|
|
@@ -63,6 +64,7 @@ EOT
|
|
|
->setDryRun($input->getOption('dry-run'))
|
|
|
->setVerbose($input->getOption('verbose'))
|
|
|
->setPreferSource($input->getOption('prefer-source'))
|
|
|
+ ->setPreferDist($input->getOption('prefer-dist'))
|
|
|
->setDevMode($input->getOption('dev'))
|
|
|
->setRunScripts(!$input->getOption('no-scripts'))
|
|
|
->setUpdate(true)
|