This repository was archived by the owner on Nov 30, 2020. It is now read-only.
forked from hexylena/argparse2tool
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.xml
More file actions
68 lines (60 loc) · 2.43 KB
/
example.xml
File metadata and controls
68 lines (60 loc) · 2.43 KB
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
63
64
65
66
67
<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>python example.py --version</version_command>
<command interpreter="python"><![CDATA[example.py $positional_1
#set repeat_var_2 = '" "'.join([ str($var.positional_2) for $var in $repeat_2 ])
"$repeat_var_2"
$sum
#if $foo and $foo is not None:
--foo $foo
#end if
#if $file and $file is not None:
--file $file
#end if
#set repeat_var_5 = '" "'.join([ str($var.bar) for $var in $repeat_5 ])
--bar "$repeat_var_5"
$true
$false
#for $i in $repeat_6:
--append $i.append
#end for
#for $i in $repeat_7:
--nargs2 "$repeat_var_7"
#end for
#if $mode and $mode is not None:
--mode $mode
#end if
> $default]]></command>
<inputs>
<param area="false" label="action keyword (positional_1)" name="positional_1" type="text"/>
<repeat min="1" name="repeat_2" title="repeat_title">
<param label="an integer for the accumulator (positional_2)" name="positional_2" type="integer" value="0"/>
</repeat>
<param checked="false" label="sum the integers (default: find the max) (--sum)" name="sum" type="boolean" truevalue="--sum" falsevalue=""/>
<param area="false" label="foo help (--foo)" name="foo" type="text"/>
<param label="foo help (--file)" name="file" type="data"/>
<repeat name="repeat_5" title="repeat_title">
<param area="false" default="1" label="BAR! (--bar)" name="bar" type="text"/>
</repeat>
<param checked="false" label="Store a true (--true)" name="true" type="boolean" truevalue="--true" falsevalue=""/>
<param checked="false" label="Store a false (--false)" name="false" type="boolean" truevalue="--false" falsevalue=""/>
<repeat name="repeat_6" title="Repeated Variable">
<param area="false" label="Append a value (--append)" name="append" type="text"/>
</repeat>
<repeat max="2" min="2" name="repeat_7" title="repeat_title">
<param area="false" label="nargs2 (--nargs2)" name="nargs2" type="text"/>
</repeat>
<param label="Author did not provide help for this parameter... (--mode)" name="mode">
<option checked="" name="scissors">scissors</option>
<option name="paper">paper</option>
<option name="rock">rock</option>
</param>
</inputs>
<outputs>
<data format="txt" hidden="false" name="default"/>
</outputs>
<help><![CDATA[here's some epilog text]]></help>
</tool>