mirror of
https://github.com/servo/servo.git
synced 2025-06-20 07:08:59 +01:00
Added warning for update-cargo -a
To quote Lars Bergstrom: > yeah, that's a giant footgun :-)
This commit is contained in:
parent
4807dadf19
commit
6653c26c90
1 changed files with 4 additions and 2 deletions
|
@ -62,10 +62,12 @@ class MachCommands(CommandBase):
|
|||
help='Command-line arguments to be passed through to cargo update')
|
||||
@CommandArgument(
|
||||
'--package', '-p', default=None,
|
||||
help='Updates selected package')
|
||||
help='Updates the selected package')
|
||||
@CommandArgument(
|
||||
'--all-packages', '-a', action='store_true',
|
||||
help='Updates all packages')
|
||||
help='Updates all packages. NOTE! This is very likely to break your ' +
|
||||
'working copy, making it impossible to build servo. Only do ' +
|
||||
'this if you really know what you are doing.')
|
||||
def update_cargo(self, params=None, package=None, all_packages=None):
|
||||
if not params:
|
||||
params = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue