[GRASS-dev] G7: parser - suppressing label in scripts

Markus Neteler neteler at osgeo.org
Fri Aug 12 05:12:34 EDT 2011


On Fri, Aug 12, 2011 at 8:58 AM, Glynn Clements
<glynn at gclements.plus.com> wrote:
>
> Soeren Gebbert wrote:
>
>> > > Any suggestions how to implement this suppressing "label" in the parser?
>> >
>> > In parse.c, I suggest adding e.g.:
>
>> thanks for your suggestions. But i think you are two steps ahead from
>> me, because i am not able to find any strdup() usage in parser*.c.
>
> I didn't say parser*.c, I said parse.c, i.e. general/g.parser/parse.c
> (in 7.0; the standard option feature hasn't been back-ported to 6.x).

Right.
Together with Sören we have implemented all in r47596.

This now works:

#%option G_OPT_V_INPUTS
#% key: vector
#% label: {NULL}
#% required: no
#%end

Markus


More information about the grass-dev mailing list