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

Markus Neteler neteler at osgeo.org
Fri Jan 16 05:47:03 PST 2015


On Fri, Jan 16, 2015 at 1:16 PM, Paulo van Breugel
<p.vanbreugel at gmail.com> wrote:
> I see what I missed: the flag needs to be given with a leading "-":
>
> #%rules
> # %required: -i,-d,-c
> #%end
>
> 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

I have added that. The example will show up online in ~ 24hs.

> p.s. note that in the help file the colon is still missing in the example in
> the Conditional parameter section.

It was already fixed... as mentioned the online manual needed some
minutes to be updated.

Markus


More information about the grass-dev mailing list