mirror of
https://github.com/servo/servo.git
synced 2025-08-02 12:10:29 +01:00
Remove allow_all_args from mach commands
This commit is contained in:
parent
850da49846
commit
8cb7a6842f
3 changed files with 10 additions and 19 deletions
|
@ -16,8 +16,7 @@ from servo.command_base import CommandBase, cd
|
|||
class MachCommands(CommandBase):
|
||||
@Command('cargo',
|
||||
description='Run Cargo',
|
||||
category='devenv',
|
||||
allow_all_args=True)
|
||||
category='devenv')
|
||||
@CommandArgument(
|
||||
'params', default=None, nargs='...',
|
||||
help="Command-line arguments to be passed through to Cargo")
|
||||
|
@ -27,8 +26,7 @@ class MachCommands(CommandBase):
|
|||
|
||||
@Command('update-cargo',
|
||||
description='Update Cargo dependencies',
|
||||
category='devenv',
|
||||
allow_all_args=True)
|
||||
category='devenv')
|
||||
@CommandArgument(
|
||||
'params', default=None, nargs='...',
|
||||
help='Command-line arguments to be passed through to cargo update')
|
||||
|
@ -45,8 +43,7 @@ class MachCommands(CommandBase):
|
|||
|
||||
@Command('rustc',
|
||||
description='Run the Rust compiler',
|
||||
category='devenv',
|
||||
allow_all_args=True)
|
||||
category='devenv')
|
||||
@CommandArgument(
|
||||
'params', default=None, nargs='...',
|
||||
help="Command-line arguments to be passed through to rustc")
|
||||
|
|
|
@ -20,10 +20,9 @@ from servo.command_base import CommandBase
|
|||
class MachCommands(CommandBase):
|
||||
@Command('run',
|
||||
description='Run Servo',
|
||||
category='post-build',
|
||||
allow_all_args=True)
|
||||
category='post-build')
|
||||
@CommandArgument(
|
||||
'params', default=None, nargs='...',
|
||||
'params', nargs='...',
|
||||
help="Command-line arguments to be passed through to Servo")
|
||||
def run(self, params):
|
||||
env = self.build_env()
|
||||
|
@ -33,8 +32,7 @@ class MachCommands(CommandBase):
|
|||
|
||||
@Command('doc',
|
||||
description='Generate documentation',
|
||||
category='post-build',
|
||||
allow_all_args=True)
|
||||
category='post-build')
|
||||
@CommandArgument(
|
||||
'params', default=None, nargs='...',
|
||||
help="Command-line arguments to be passed through to cargo doc")
|
||||
|
@ -45,8 +43,7 @@ class MachCommands(CommandBase):
|
|||
|
||||
@Command('serve-docs',
|
||||
description='Locally serve Servo and Rust documentation',
|
||||
category='post-build',
|
||||
allow_all_args=True)
|
||||
category='post-build')
|
||||
@CommandArgument(
|
||||
'port', default=8888, nargs='?', type=int, metavar='PORT',
|
||||
help="Port to serve documentation at (default is 8888)")
|
||||
|
|
|
@ -55,8 +55,7 @@ class MachCommands(CommandBase):
|
|||
|
||||
@Command('test-unit',
|
||||
description='Run unit tests',
|
||||
category='testing',
|
||||
allow_all_args=True)
|
||||
category='testing')
|
||||
@CommandArgument('test_name', default=None, nargs="...",
|
||||
help="Only run tests that match this pattern")
|
||||
def test_unit(self, test_name=None):
|
||||
|
@ -113,8 +112,7 @@ class MachCommands(CommandBase):
|
|||
|
||||
@Command('test-content',
|
||||
description='Run the content tests',
|
||||
category='testing',
|
||||
allow_all_args=True)
|
||||
category='testing')
|
||||
@CommandArgument('test_name', default=None, nargs="?",
|
||||
help="Only run tests that match this pattern")
|
||||
def test_content(self, test_name=None):
|
||||
|
@ -142,8 +140,7 @@ class MachCommands(CommandBase):
|
|||
|
||||
@Command('test-wpt',
|
||||
description='Run the web platform tests',
|
||||
category='testing',
|
||||
allow_all_args=True)
|
||||
category='testing')
|
||||
@CommandArgument(
|
||||
'params', default=None, nargs='...',
|
||||
help="Command-line arguments to be passed through to wpt/run.sh")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue