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

Markus Neteler neteler at osgeo.org
Wed Aug 10 09:19:35 EDT 2011


Hi,

we have a problem with the introduction of labels:
http://trac.osgeo.org/grass/changeset/39886/grass/trunk/lib/gis/parser_standard_options.c

because:

myscript.py help
        vector   Name of input vector map(s) used by GRASS script
                  Data source(s) for direct OGR access

... but we don't want the second line.

It would be good to be able to suppress "label" with the a reserved word
like "None" or "NULL":

#%option G_OPT_V_INPUTS
#% key: vector
#% label: NULL
#% description: Name of input vector map(s) used by GRASS script
#% required: no
#%end

to eventually gain:

myscript.py help
        vector   Name of input vector map(s) used by GRASS script

Any suggestions how to implement this suppressing "label" in the parser?

Markus


More information about the grass-dev mailing list