HEY guys,
I have got some problems.I want to add a tool into galaxy.But following the xml below,what I get is always tac $input.
It cannot distinguish -b,-r.And I also do not know how to make -s string run in it.So I would like you to recommand me some materials to read,and figure out how it works.
<tool id="tac1" name="tac datasets">
    <description>tail-to-head</description>
    <command>
    <![CDATA[
        tac
        -b
        -r        
        $input1
        > $out_file1
        
        ]]>
        
    </command>
    <inputs>
        <param name="input1" type="data" label="Tac Dataset"/>
        <param name="delimiter" type="select" label="Delimited by">
      <option value="N">Null</option>
      <option value="B">-b</option>
      <option value="R">-r</option>
      <option value="S">-s</option>
    </param>
    </inputs>
    <outputs>          
<data name="out_file1" format="input" metadata_source="input1"/>
    </outputs>
    <tests>
        <test>
            <param name="delimiter" value="N"/>    
            <param name="input1" value="1.bed"/>
            <output name="out_file1" file="tac_wrapper_out1.bed"/>
        </test>
        <!--TODO: if possible, enhance the underlying test code to handle this test
            the problem is multiple params with the same name "input2"
        <test>
            <param name="input1" value="1.bed"/>
            <param name="input2" value="2.bed"/>
            <param name="input2" value="3.bed"/>
            <output name="out_file1" file="cat_wrapper_out2.bed"/>
        </test>
        -->
    </tests>
</tool>
