forked from hexylena/argparse2tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.xml
63 lines (56 loc) · 2.35 KB
/
example.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<tool id="example.py" name="example.py" version="2.0">
<description>Process some integers.</description>
<stdio>
<exit_code level="fatal" range="1:"/>
</stdio>
<version_command><![CDATA[python example.py --version]]></version_command>
<command><![CDATA[python example.py $keyword
#set repeat_var_2 = '" "'.join([ str($var.integers) for $var in $repeat_2 ])
"$repeat_var_2"
$sum
#if $foo and $foo is not None:
--foo $foo
#end if
#set repeat_var_4 = '" "'.join([ str($var.bar) for $var in $repeat_4 ])
--bar "$repeat_var_4"
$true
$false
#for $i in $repeat_5:
--append $i.append
#end for
#for $i in $repeat_6:
--nargs2 "$repeat_var_6"
#end for
#if $mode and $mode is not None:
--mode $mode
#end if
> $default]]></command>
<inputs>
<param label="action keyword" name="keyword" type="text"/>
<repeat min="1" name="repeat_2" title="repeat_title">
<param label="an integer for the accumulator" name="integers" type="integer" value="0"/>
</repeat>
<param argument="--sum" checked="false" label="sum the integers (default: find the max)" name="sum" type="boolean" truevalue="--sum" falsevalue=""/>
<param argument="--foo" label="foo help" name="foo" optional="true" type="text"/>
<repeat name="repeat_4" title="repeat_title">
<param argument="--bar" label="BAR!" name="bar" optional="true" type="text" value="1"/>
</repeat>
<param argument="--true" checked="false" label="Store a true" name="true" type="boolean" truevalue="--true" falsevalue=""/>
<param argument="--false" checked="false" label="Store a false" name="false" type="boolean" truevalue="--false" falsevalue=""/>
<repeat name="repeat_5" title="Repeated Variable">
<param argument="--append" label="Append a value" name="append" type="text"/>
</repeat>
<repeat max="2" min="2" name="repeat_6" title="repeat_title">
<param argument="--nargs2" label="nargs2" name="nargs2" optional="true" type="text"/>
</repeat>
<param argument="--mode" label="Author did not provide help for this parameter... " name="mode" optional="true" type="select">
<option value="paper">paper</option>
<option value="rock">rock</option>
<option selected="true" value="scissors">scissors</option>
</param>
</inputs>
<outputs>
<data format="txt" hidden="false" name="default"/>
</outputs>
<help><![CDATA[here's some epilog text]]></help>
</tool>