Skip to content

Commit e868488

Browse files
committed
Fix small argparse problem
1 parent 4345ddc commit e868488

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MC/bin/o2_dpg_workflow_runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ def execute(self):
395395
print (i['name'])
396396
exit (0)
397397

398-
if args.produce_script:
398+
if args.produce_script != None:
399399
self.produce_script(args.produce_script)
400400
exit (0)
401401

@@ -464,7 +464,7 @@ def execute(self):
464464
parser.add_argument('--dry-run', action='store_true', help='show what you would do')
465465
parser.add_argument('--visualize-workflow', action='store_true', help='saves a graph visualization of workflow')
466466
parser.add_argument('--target-stages', help='Runs the pipeline by target labels (example "TPC" or "digi")')
467-
parser.add_argument('--produce-script', help='Produces a shell script that runs the workflow in serialized manner and quits.', default='workflow_script.sh')
467+
parser.add_argument('--produce-script', help='Produces a shell script that runs the workflow in serialized manner and quits.')
468468
parser.add_argument('--rerun-from', help='Reruns the workflow starting from given task. All dependent jobs will be rerun.')
469469
parser.add_argument('--list-tasks', help='Simply list all tasks by name and quit.', action='store_true')
470470

0 commit comments

Comments
 (0)