Bug 945577 - Followup to mach rbt so argument parsing works as expected
authorGregory Szorc <gps@mozilla.com>
Sat, 07 Dec 2013 09:30:19 +0900
changeset 174036 2c5a87384e5b425112dce31fd7b8ba0e1ff44638
parent 174035 61cda1f28ce43a43c6e6c04d1f5a2187343f67ee
child 174037 26fb7e60d2880a08278c1d6c99e0f5b98af8c044
push idunknown
push userunknown
push dateunknown
bugs945577
milestone28.0a1
Bug 945577 - Followup to mach rbt so argument parsing works as expected DONTBUILD (NPOTB)
tools/mach_commands.py
--- a/tools/mach_commands.py
+++ b/tools/mach_commands.py
@@ -285,19 +285,19 @@ class PastebinProvider(object):
         except urllib2.URLError:
             print('ERROR. Could not connect to pastebin.mozilla.org.')
             return 1
         return 0
 
 
 @CommandProvider
 class ReviewboardToolsProvider(MachCommandBase):
-    @Command('rbt', category='devenv',
+    @Command('rbt', category='devenv', allow_all_args=True,
         description='Run Reviewboard Tools')
-    @CommandArgument('args', nargs='*', help='Arguments to rbt tool')
+    @CommandArgument('args', nargs='...', help='Arguments to rbt tool')
     def rbt(self, args):
         if not args:
             args = ['help']
 
         self._activate_virtualenv()
         self.virtualenv_manager.install_pip_package('RBTools')
 
         from rbtools.commands.main import main