1
0
Fork 0

Rename --dev to --prefer-source

pull/294/head
Beau Simensen 2012-02-13 13:05:44 -08:00
parent edae6d5eab
commit 81d41fc442
2 changed files with 4 additions and 4 deletions

View File

@ -46,7 +46,7 @@ class InstallCommand extends Command
->setName('install') ->setName('install')
->setDescription('Parses the composer.json file and downloads the needed dependencies.') ->setDescription('Parses the composer.json file and downloads the needed dependencies.')
->setDefinition(array( ->setDefinition(array(
new InputOption('dev', null, InputOption::VALUE_NONE, 'Forces installation from package sources when possible, including VCS information.'), new InputOption('prefer-source', 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('dry-run', null, InputOption::VALUE_NONE, 'Outputs the operations but will not execute anything (implicitly enables --verbose).'),
new InputOption('no-install-recommends', null, InputOption::VALUE_NONE, 'Do not install recommended 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).'), new InputOption('install-suggests', null, InputOption::VALUE_NONE, 'Also install suggested packages (ignored when installing from an existing lock file).'),
@ -73,7 +73,7 @@ EOT
$io, $io,
$composer, $composer,
$eventDispatcher, $eventDispatcher,
(Boolean)$input->getOption('dev'), (Boolean)$input->getOption('prefer-source'),
(Boolean)$input->getOption('dry-run'), (Boolean)$input->getOption('dry-run'),
(Boolean)$input->getOption('verbose'), (Boolean)$input->getOption('verbose'),
(Boolean)$input->getOption('no-install-recommends'), (Boolean)$input->getOption('no-install-recommends'),

View File

@ -35,7 +35,7 @@ class UpdateCommand extends Command
->setName('update') ->setName('update')
->setDescription('Updates your dependencies to the latest version, and updates the composer.lock file.') ->setDescription('Updates your dependencies to the latest version, and updates the composer.lock file.')
->setDefinition(array( ->setDefinition(array(
new InputOption('dev', null, InputOption::VALUE_NONE, 'Forces installation from package sources when possible, including VCS information.'), new InputOption('prefer-source', 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('dry-run', null, InputOption::VALUE_NONE, 'Outputs the operations but will not execute anything (implicitly enables --verbose).'),
new InputOption('no-install-recommends', null, InputOption::VALUE_NONE, 'Do not install recommended 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.'), new InputOption('install-suggests', null, InputOption::VALUE_NONE, 'Also install suggested packages.'),
@ -63,7 +63,7 @@ EOT
$io, $io,
$composer, $composer,
$eventDispatcher, $eventDispatcher,
(Boolean)$input->getOption('dev'), (Boolean)$input->getOption('prefer-source'),
(Boolean)$input->getOption('dry-run'), (Boolean)$input->getOption('dry-run'),
(Boolean)$input->getOption('verbose'), (Boolean)$input->getOption('verbose'),
(Boolean)$input->getOption('no-install-recommends'), (Boolean)$input->getOption('no-install-recommends'),