[GRASS-dev] new option to set options to be required or exclusive, etc

Glynn Clements glynn at gclements.plus.com
Fri Jan 16 20:16:17 PST 2015


Paulo van Breugel wrote:

> It might be useful to have an example of both rules for options and for
> flags (in the example section or perhaps even in the 'Conditional
> parameter' section like below
> 
> For scripts, relationships are specified using a "rules" section, e.g.for
> options:
> 
> 	#%rules
> 	#%required: altitude,elevation
> 	#%end
> 
> and e.g., for flags:
> 
>         #%rules
> 	#%required: -f,-i
>         #%end
> 

It should probably have an example using both options and flags; they
can be mixed within a rule.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list