[GRASS-dev] Passing several floating values to one single option
Glynn Clements
glynn at gclements.plus.com
Thu Sep 13 03:44:13 PDT 2012
Glynn Clements wrote:
> The option definition in the script should have:
>
> #% type: double
> #% multiple: yes
>
> This allows g.parser to validate the option syntax, so you can rely
> upon the string being in the correct format. If the values have a
> fixed range, you can use e.g.:
>
> #% options: 0.0-1.0
>
> to have the parser check that the values fall within the range.
For more information on option definitions, see:
http://grass.osgeo.org/programming7/gislib.html#Complete_Structure_Members_Table
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list