Opened 11 years ago

Closed 8 years ago

#2099 closed defect (fixed)

G_OPT_M_COLR not recognized in Python script

Reported by: annakrat Owned by: grass-dev@…
Priority: normal Milestone: 7.0.5
Component: LibGIS Version: svn-trunk
Keywords: color table, parser Cc:
CPU: Unspecified Platform: Linux

Description

When I try to use standardized option G_OPT_M_COLR (color tables) in a Python script, I get only:

myscript --help

Description:
...
Usage:
...
ERROR: Option key not defined

and

myscript --interface-description

...
<parameter name="(null)" type="string" required="no" multiple="no">
	</parameter>
...

This affects t.rast.colors. G_OPT_M_COLR is defined here:

[1] http://trac.osgeo.org/grass/browser/grass/trunk/lib/gis/parser_standard_options.c#L619

Change History (3)

comment:1 by wenzeslaus, 10 years ago

t.rast.colors --interface-description seems to work. ... | grep null gives nothing. t.rast.colors --help gives full output and no error:

Description:
...
Keywords:
...
Usage:
 t.rast.colors [-rwlngae] input=name [color=string] [raster=name]
   [volume=name] [rules=name] [--help] [--verbose] [--quiet]

Flags:
...
Parameters:
...

Test script with G_OPT_M_COLR should be created.

comment:2 by martinl, 9 years ago

Milestone: 7.0.07.0.5

comment:3 by martinl, 8 years ago

Resolution: fixed
Status: newclosed

Already fixed, closing.

Note: See TracTickets for help on using tickets.