Opened 6 years ago

Closed 3 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 Changed 5 years ago by wenzeslaus

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 Changed 3 years ago by martinl

Milestone: 7.0.07.0.5

comment:3 Changed 3 years ago by martinl

Resolution: fixed
Status: newclosed

Already fixed, closing.

Note: See TracTickets for help on using tickets.