1
0
Fork 0

Force remove command to have at least one package name passed, refs #6338

pull/6356/head
Jordi Boggiano 2017-04-14 00:16:18 +02:00
parent be38f7e65d
commit 890baa2f89
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class RemoveCommand extends BaseCommand
->setName('remove') ->setName('remove')
->setDescription('Removes a package from the require or require-dev.') ->setDescription('Removes a package from the require or require-dev.')
->setDefinition(array( ->setDefinition(array(
new InputArgument('packages', InputArgument::IS_ARRAY, 'Packages that should be removed.'), new InputArgument('packages', InputArgument::IS_ARRAY | InputArgument::REQUIRED, 'Packages that should be removed.'),
new InputOption('dev', null, InputOption::VALUE_NONE, 'Removes a package from the require-dev section.'), new InputOption('dev', null, InputOption::VALUE_NONE, 'Removes a package from the require-dev section.'),
new InputOption('no-progress', null, InputOption::VALUE_NONE, 'Do not output download progress.'), new InputOption('no-progress', null, InputOption::VALUE_NONE, 'Do not output download progress.'),
new InputOption('no-update', null, InputOption::VALUE_NONE, 'Disables the automatic update of the dependencies.'), new InputOption('no-update', null, InputOption::VALUE_NONE, 'Disables the automatic update of the dependencies.'),