[GRASS-SVN] r62910 - grass/trunk/display/d.colortable

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Nov 25 01:08:30 PST 2014


Author: martinl
Date: 2014-11-25 01:08:29 -0800 (Tue, 25 Nov 2014)
New Revision: 62910

Modified:
   grass/trunk/display/d.colortable/main.c
Log:
d.colortable: use standardized options (#2409)


Modified: grass/trunk/display/d.colortable/main.c
===================================================================
--- grass/trunk/display/d.colortable/main.c	2014-11-25 09:05:18 UTC (rev 62909)
+++ grass/trunk/display/d.colortable/main.c	2014-11-25 09:08:29 UTC (rev 62910)
@@ -66,12 +66,9 @@
     opt1->description =
 	_("Name of raster map whose color table is to be displayed");
 
-    opt2 = G_define_option();
-    opt2->key = "color";
-    opt2->type = TYPE_STRING;
+    opt2 = G_define_standard_option(G_OPT_C_FG);
     opt2->answer = DEFAULT_BG_COLOR;
-    opt2->gisprompt = "old_color,color,color";
-    opt2->description =
+    opt2->label =
 	_("Color of lines separating the colors of the color table");
 
     opt3 = G_define_option();
@@ -81,7 +78,7 @@
     opt3->description = _("Number of lines to appear in the color table");
 
     opt4 = G_define_option();
-    opt4->key = "cols";
+    opt4->key = "columns";
     opt4->type = TYPE_INTEGER;
     opt4->options = "1-1000";
     opt4->description = _("Number of columns to appear in the color table");



More information about the grass-commit mailing list