Bug 1302786: add help message for mach taskgraph --tasks-regex r=me
authorDustin J. Mitchell <dustin@mozilla.com>
Thu, 17 Nov 2016 23:46:25 +0000
changeset 896463 add1700c24ca4e854f9c4e66bf433cc8c6696f2d
parent 896462 d607a23fc3dc64956e68b588e53772b9aef48f4f
child 896464 8c3dbc507117517a3569a4b2448973aacad0ae40
push id155501
push userashiue@mozilla.com
push dateFri, 18 Nov 2016 03:26:06 +0000
treeherdertry@c775a1cfc96e [default view] [failures only]
reviewersme
bugs1302786
milestone53.0a1
Bug 1302786: add help message for mach taskgraph --tasks-regex r=me MozReview-Commit-ID: EK4GqfMhUA4
taskcluster/mach_commands.py
--- a/taskcluster/mach_commands.py
+++ b/taskcluster/mach_commands.py
@@ -45,17 +45,19 @@ class ShowTaskGraphSubCommand(SubCommand
                             help="Output the label for each task in the task graph (default)"),
             CommandArgument('--parameters', '-p', required=True,
                             help="parameters file (.yml or .json; see "
                                  "`taskcluster/docs/parameters.rst`)`"),
             CommandArgument('--no-optimize', dest="optimize", action="store_false",
                             default="true",
                             help="do not remove tasks from the graph that are found in the "
                             "index (a.k.a. optimize the graph)"),
-            CommandArgument('--tasks-regex', '--tasks', default=None)
+            CommandArgument('--tasks-regex', '--tasks', default=None,
+                            help="only return tasks with labels matching this regular "
+                            "expression.")
 
         ]
         for arg in args:
             after = arg(after)
         return after
 
 
 @CommandProvider