Skip to content

Commit cac8cc0

Browse files
committed
added option for workflow name
1 parent fc5c06a commit cac8cc0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

capsul/process/runprocess.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,8 @@ def main():
429429
'workflow will not be actually run, because in this '
430430
'situation the user probably wants to use the workflow '
431431
'on his own.')
432+
group2.add_option('-n', '--name', dest='workflow_name', default=None,
433+
help='workflow name')
432434
group2.add_option('-p', '--password', dest='password', default=None,
433435
help='password to access the remote computing resource. '
434436
'Do not specify it if using a ssh key')
@@ -693,6 +695,9 @@ def main():
693695
else:
694696
file_processing = [None, None]
695697

698+
if options.workflow_name is not None:
699+
process.name = options.workflow_name
700+
696701
res = run_process_with_distribution(
697702
study_config, process, options.soma_workflow, resource_id=resource_id,
698703
password=password, rsa_key_pass=rsa_key_pass,

0 commit comments

Comments
 (0)