From 0b70acb128ece54d3fa532603d7080b4619c205b Mon Sep 17 00:00:00 2001 From: Marcel Ribeiro Dantas Date: Tue, 6 Dec 2022 07:11:57 -0300 Subject: [PATCH] Clarify usage of additional options for path qualifier (#3405) [ci skip] Signed-off-by: Marcel Ribeiro-Dantas --- docs/process.rst | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docs/process.rst b/docs/process.rst index 3b08a6fc2b..2956d6096f 100644 --- a/docs/process.rst +++ b/docs/process.rst @@ -1023,6 +1023,33 @@ Name Description ``includeInputs`` When ``true`` any input files matching an output file glob pattern are included. ================== ===================== +The parenthesis are optional for input and output qualifiers, but when you want to set an additional option and there +is more than one input or output qualifier, you must use parenthesis so that Nextflow knows what qualifier you're +referring to. + +One example with a single output qualifier:: + + process foo { + output: + path 'result.txt', hidden: true + + ''' + echo 'another new line' >> result.txt + ''' + } + +Another example with multiple output qualifiers:: + + process foo { + output: + tuple path('last_result.txt'), path('result.txt', hidden: true) + + ''' + echo 'another new line' >> result.txt + echo 'another new line' > last_result.txt + ''' + } + Multiple output files ---------------------