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 175010 2c5a87384e5b425112dce31fd7b8ba0e1ff44638
parent 175009 61cda1f28ce43a43c6e6c04d1f5a2187343f67ee
child 175011 26fb7e60d2880a08278c1d6c99e0f5b98af8c044
push id445
push userffxbld
push dateMon, 10 Mar 2014 22:05:19 +0000
treeherdermozilla-release@dc38b741b04e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs945577
milestone28.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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