mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
Fixes #4898.
This commit is contained in:
parent
2cc08f289a
commit
1e8cc99ff3
1 changed files with 5 additions and 2 deletions
|
@ -161,7 +161,10 @@ class MachCommands(CommandBase):
|
||||||
@CommandArgument('--verbose', '-v',
|
@CommandArgument('--verbose', '-v',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
help='Print verbose output')
|
help='Print verbose output')
|
||||||
def clean(self, manifest_path, verbose=False):
|
|
||||||
|
@CommandArgument('params', nargs='...',
|
||||||
|
help="Command-line arguments to be passed through to Cargo")
|
||||||
|
def clean(self, manifest_path, params, verbose=False):
|
||||||
self.ensure_bootstrapped()
|
self.ensure_bootstrapped()
|
||||||
|
|
||||||
opts = []
|
opts = []
|
||||||
|
@ -169,6 +172,6 @@ class MachCommands(CommandBase):
|
||||||
opts += ["--manifest-path", manifest_path]
|
opts += ["--manifest-path", manifest_path]
|
||||||
if verbose:
|
if verbose:
|
||||||
opts += ["-v"]
|
opts += ["-v"]
|
||||||
|
opts += params
|
||||||
return subprocess.call(["cargo", "clean"] + opts,
|
return subprocess.call(["cargo", "clean"] + opts,
|
||||||
env=self.build_env(), cwd=self.servo_crate())
|
env=self.build_env(), cwd=self.servo_crate())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue