Bug 1378212 - Default to grabbing 'parameters.yml' file from latest mozilla-central decision task, r=dustin

MozReview-Commit-ID: 1993ISgb1Dn
This commit is contained in:
Andrew Halberstadt
2017-07-04 16:10:05 -04:00
parent 9e9b994f8f
commit 87d4a15ff3
3 changed files with 18 additions and 10 deletions

View File

@@ -41,7 +41,7 @@ class ShowTaskGraphSubCommand(SubCommand):
CommandArgument('--labels', '-L', action="store_const",
dest="format", const="labels",
help="Output the label for each task in the task graph (default)"),
CommandArgument('--parameters', '-p', required=True,
CommandArgument('--parameters', '-p', default="project=mozilla-central",
help="parameters file (.yml or .json; see "
"`taskcluster/docs/parameters.rst`)`"),
CommandArgument('--no-optimize', dest="optimize", action="store_false",
@@ -339,7 +339,7 @@ class MachCommands(MachCommandBase):
try:
self.setup_logging(quiet=options['quiet'], verbose=options['verbose'])
parameters = taskgraph.parameters.load_parameters_file(options)
parameters = taskgraph.parameters.load_parameters_file(options['parameters'])
parameters.check()
tgg = taskgraph.generator.TaskGraphGenerator(