[twill] passing parameters to twill scripts

Michele Simionato michele.simionato at gmail.com
Fri Mar 24 00:09:09 PST 2006


On 3/23/06, Titus Brown <titus at caltech.edu> wrote:
> What do you think about adding a '--' separator to the twill-sh command
> line, so that you can do things like
>
>         twill-sh test.twill -- arg1 arg2 arg3
>
> ?

What do you mean? In this way the args could be interpreted without importing
argparse explicitely? For instance if I had two similar scripts depending each
on three parameters, would

$ twill-sh test1.twill test2.twill-- arg1 arg2 arg3

call both test1 and test2 with the same arguments arg1, arg2 and arg3?

    Michele Simionato



More information about the twill mailing list