[GRASS-dev] Passing several floating values to one single option
Markus Metz
markus.metz.giswork at gmail.com
Thu Sep 13 00:36:34 PDT 2012
On Thu, Sep 13, 2012 at 2:07 AM, Pierre Roudier
<pierre.roudier at gmail.com> wrote:
> Hi all,
>
> This might be very simple, but I can't find an answer in the doco - so
> here I am,
>
> I'm trying to pass several floats to a single option in a Python script:
>
>> python my.module.py input=input output=output myoption=0.1,0.2,0.5
>
> Is there a clever way to declare myoption so that it would parse it as
> some 3 floats?
Add
#% multiple : yes
to the option definition section of myoption.
Markus M
More information about the grass-dev
mailing list