On 15/01/15 08:46, Glynn Clements wrote:

Requiring raster OR vector is possible already.

#%rules
#% requires: raster, vector
#%end

This should be "required" (at least one of the options must be given).
If you want exactly one option to be given, you need both "required"
and "exclusive", e.g.

#%rules
#% required: raster, vector
#% exclusive: raster, vector
#%end

A "requires" rule indicates that if the first option is given, at
least one of the other options must be given.


It would be great if all these options could be documented in the g.parser man page...

Moritz


_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to