Bug 1080302 (part 3) - Convert -foo options to --foo in |mach run|. r=glandium.
authorNicholas Nethercote <nnethercote@mozilla.com>
Thu, 23 Oct 2014 17:39:49 -0700
changeset 212414 e0354403d6958f0e71a0191919faf97944c3eacf
parent 212413 cb44ac1b1f1ee093f7f15ae586e69d113db1c2e3
child 212415 eec905f5d36494c2276e3c8ae8f7d6b0987b3c49
push id27710
push usercbook@mozilla.com
push dateMon, 27 Oct 2014 14:52:01 +0000
treeherdermozilla-central@d65d20dc0ac2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1080302
milestone36.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 1080302 (part 3) - Convert -foo options to --foo in |mach run|. r=glandium.
python/mozbuild/mozbuild/mach_commands.py
--- a/python/mozbuild/mozbuild/mach_commands.py
+++ b/python/mozbuild/mozbuild/mach_commands.py
@@ -789,24 +789,24 @@ class Install(MachCommandBase):
 class RunProgram(MachCommandBase):
     """Run the compiled program."""
 
     prog_group = 'the compiled program'
 
     @Command('run', category='post-build',
         description='Run the compiled program, possibly under a debugger or DMD.')
     @CommandArgument('params', nargs='...', group=prog_group,
-        help='Command-line arguments to be passed through to the program. Not specifying a -profile or -P option will result in a temporary profile being used.')
+        help='Command-line arguments to be passed through to the program. Not specifying a --profile or -P option will result in a temporary profile being used.')
     @CommandArgumentGroup(prog_group)
-    @CommandArgument('-remote', '-r', action='store_true', group=prog_group,
-        help='Do not pass the -no-remote argument by default.')
-    @CommandArgument('-background', '-b', action='store_true', group=prog_group,
-        help='Do not pass the -foreground argument by default on Mac.')
-    @CommandArgument('-noprofile', '-n', action='store_true', group=prog_group,
-        help='Do not pass the -profile argument by default.')
+    @CommandArgument('--remote', '-r', action='store_true', group=prog_group,
+        help='Do not pass the --no-remote argument by default.')
+    @CommandArgument('--background', '-b', action='store_true', group=prog_group,
+        help='Do not pass the --foreground argument by default on Mac.')
+    @CommandArgument('--noprofile', '-n', action='store_true', group=prog_group,
+        help='Do not pass the --profile argument by default.')
 
     @CommandArgumentGroup('debugging')
     @CommandArgument('--debug', action='store_true', group='debugging',
         help='Enable the debugger. Not specifying a --debugger option will result in the default debugger being used. The following arguments have no effect without this.')
     @CommandArgument('--debugger', default=None, type=str, group='debugging',
         help='Name of debugger to use.')
     @CommandArgument('--debugparams', default=None, metavar='params', type=str,
         group='debugging',