diff options
author | Matthew Rasmus <mattr@zzntd.com> | 2014-11-23 16:45:40 -0800 |
---|---|---|
committer | Matthew Rasmus <mattr@zzntd.com> | 2014-11-23 16:45:40 -0800 |
commit | 8cb7a6842fe83fc94856a118f3e85587eb18cb59 (patch) | |
tree | 43f212d5bb163763559e72799647438082d320f2 | |
parent | 850da4984682380bc204eae675749df76e50db54 (diff) | |
download | servo-8cb7a6842fe83fc94856a118f3e85587eb18cb59.tar.gz servo-8cb7a6842fe83fc94856a118f3e85587eb18cb59.zip |
Remove allow_all_args from mach commands
-rw-r--r-- | python/servo/devenv_commands.py | 9 | ||||
-rw-r--r-- | python/servo/post_build_commands.py | 11 | ||||
-rw-r--r-- | python/servo/testing_commands.py | 9 |
3 files changed, 10 insertions, 19 deletions
diff --git a/python/servo/devenv_commands.py b/python/servo/devenv_commands.py index 5b4e14c1e3e..e031a957935 100644 --- a/python/servo/devenv_commands.py +++ b/python/servo/devenv_commands.py @@ -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") diff --git a/python/servo/post_build_commands.py b/python/servo/post_build_commands.py index 10ab699aca4..d6520a1fe4e 100644 --- a/python/servo/post_build_commands.py +++ b/python/servo/post_build_commands.py @@ -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)") diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index 9498f1beb2c..403423823af 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -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") |