servo: Merge #5771 - Alias cargo-update to update-cargo (from Manishearth:cargo-update); r=jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 3c4ca28a65b7007d25760c762a6723c655a0423f
This commit is contained in:
Manish Goregaokar 2015-04-21 09:49:31 -05:00
Родитель 2a44702239
Коммит c9793648ae
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -31,6 +31,15 @@ class MachCommands(CommandBase):
return subprocess.call(['cargo'] + params,
env=self.build_env())
@Command('cargo-update',
description='Same as update-cargo',
category='devenv')
@CommandArgument(
'params', default=None, nargs='...',
help='Command-line arguments to be passed through to cargo update')
def cargo_update(self, params=None):
self.update_cargo(params)
@Command('update-cargo',
description='Update Cargo dependencies',
category='devenv')