mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 10:24:38 +08:00
Add documentation on optional `multiple="true"` data parameters.
Thanks to detailed biostar question from @lindenb (sorry these parameters are so counter-intuitive - I don't have an excuse other than a need to preserve backward compatibility). Rebased with indention requested by @nsoranzo and fixes for the test case tool.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<tool id="multi_data_optional" name="multi_data_optional" version="0.1.0">
|
||||
<command>
|
||||
touch $out1;
|
||||
#for $input in $input1
|
||||
#if $input
|
||||
cat $input >> $out1;
|
||||
#end if
|
||||
#end for
|
||||
</command>
|
||||
<inputs>
|
||||
<param name="input1" type="data" format="txt" multiple="true" label="Data 1" optional="true" />
|
||||
</inputs>
|
||||
<outputs>
|
||||
<data format="txt" name="out1" />
|
||||
</outputs>
|
||||
<tests>
|
||||
<test>
|
||||
<param name="input1" value="simple_line.txt,simple_line_alternative.txt" />
|
||||
<output name="out1">
|
||||
<assert_contents>
|
||||
<has_line line="This is a line of text." />
|
||||
<has_line line="This is a different line of text." />
|
||||
</assert_contents>
|
||||
</output>
|
||||
</test>
|
||||
</tests>
|
||||
</tool>
|
||||
Reference in New Issue
Block a user