Bug 1200688: Support --interactive command line option r=jonasfj

taskcluster-graph and taskcluster-build mach command now has the
--interactive option and try supports the "-i" flag.

This makes all tasks interactive.
This commit is contained in:
Wander Lairson Costa
2015-09-03 17:08:50 -03:00
parent 88c1a2e6d8
commit 405d800d0a
2 changed files with 35 additions and 0 deletions

View File

@@ -222,6 +222,7 @@ def parse_commit(message, jobs):
parser.add_argument('-b', '--build', dest='build_types')
parser.add_argument('-p', '--platform', nargs='?', dest='platforms', const='all', default='all')
parser.add_argument('-u', '--unittests', nargs='?', dest='tests', const='all', default='all')
parser.add_argument('-i', '--interactive', dest='interactive', action='store_true', default=False)
args, unknown = parser.parse_known_args(parts[try_idx:])
# Then builds...
@@ -278,6 +279,7 @@ def parse_commit(message, jobs):
'additional-parameters': additional_parameters,
'build_name': platform,
'build_type': build_type,
'interactive': args.interactive,
})
return result