# check that none of the above arguments are used without the --sub-task
ifargs.sub_taskisNone:
ifargs.model_typeisnotNone:raiseValueError("The option --model-type is an internal option and cannot be used to define experiments")
ifargs.score_typeisnotNone:raiseValueError("The option --score-type is an internal option and cannot be used to define experiments")
ifargs.groupisnotNone:raiseValueError("The option --group is an internal option and cannot be used to define experiments; did you mean to use --groups?")
returnargs
defadd_jobs(args,submitter):
"""Adds all (desired) jobs of the tool chain to the grid, or to the local list to be executed."""