Allow name to be passed through command line

This commit is contained in:
Jaret Burkett
2023-07-31 11:56:57 -06:00
parent 52f02d53f1
commit 7726911562
3 changed files with 20 additions and 9 deletions

10
run.py
View File

@@ -36,6 +36,14 @@ def main():
action='store_true',
help='Continue running additional jobs even if a job fails'
)
# flag to continue if failed job
parser.add_argument(
'-n', '--name',
type=str,
default=None,
help='Name to replace [name] tag in config file, useful for shared config file'
)
args = parser.parse_args()
config_file_list = args.config_file_list
@@ -49,7 +57,7 @@ def main():
for config_file in config_file_list:
try:
job = get_job(config_file)
job = get_job(config_file, args.name)
job.run()
job.cleanup()
jobs_completed += 1