Remove allow_all_args from mach commands

This commit is contained in:
Matthew Rasmus 2014-11-23 16:45:40 -08:00
parent 850da49846
commit 8cb7a6842f
3 changed files with 10 additions and 19 deletions

View file

@ -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)")