1
0
Fork 0

add alias `u` to the update command

pull/7464/head
refael iliaguyev 2018-07-19 11:38:43 +03:00
parent b63e2de819
commit 2f347e1347
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ resolution.
requirements and force the installation even if the local machine does not requirements and force the installation even if the local machine does not
fulfill these. See also the [`platform`](06-config.md#platform) config option. fulfill these. See also the [`platform`](06-config.md#platform) config option.
## update ## update / u
In order to get the latest versions of the dependencies and to update the In order to get the latest versions of the dependencies and to update the
`composer.lock` file, you should use the `update` command. This command is also `composer.lock` file, you should use the `update` command. This command is also

View File

@ -34,7 +34,7 @@ class UpdateCommand extends BaseCommand
{ {
$this $this
->setName('update') ->setName('update')
->setAliases(array('upgrade')) ->setAliases(array('u', 'upgrade'))
->setDescription('Upgrades your dependencies to the latest version according to composer.json, and updates the composer.lock file.') ->setDescription('Upgrades your dependencies to the latest version according to composer.json, and updates the composer.lock file.')
->setDefinition(array( ->setDefinition(array(
new InputArgument('packages', InputArgument::IS_ARRAY | InputArgument::OPTIONAL, 'Packages that should be updated, if not provided all packages are.'), new InputArgument('packages', InputArgument::IS_ARRAY | InputArgument::OPTIONAL, 'Packages that should be updated, if not provided all packages are.'),