mirror of
https://github.com/servo/servo.git
synced 2025-06-23 00:24:35 +01:00
Check for no parameters when invoking cargo
This commit is contained in:
parent
65ee8166bd
commit
9b1fd5a05f
1 changed files with 2 additions and 0 deletions
|
@ -21,6 +21,8 @@ class MachCommands(CommandBase):
|
|||
'params', default=None, nargs='...',
|
||||
help="Command-line arguments to be passed through to Cargo")
|
||||
def cargo(self, params):
|
||||
if not params:
|
||||
params = []
|
||||
return subprocess.call(["cargo"] + params,
|
||||
env=self.build_env())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue