[GRASS-SVN] r44452 - grass/trunk/raster/r.colors

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Nov 27 16:38:27 EST 2010


Author: martinl
Date: 2010-11-27 13:38:27 -0800 (Sat, 27 Nov 2010)
New Revision: 44452

Modified:
   grass/trunk/raster/r.colors/main.c
Log:
r.colors: use suppress_required


Modified: grass/trunk/raster/r.colors/main.c
===================================================================
--- grass/trunk/raster/r.colors/main.c	2010-11-27 17:00:03 UTC (rev 44451)
+++ grass/trunk/raster/r.colors/main.c	2010-11-27 21:38:27 UTC (rev 44452)
@@ -171,9 +171,7 @@
 	_("Creates/modifies the color table associated with a raster map.");
     
     opt.map = G_define_standard_option(G_OPT_R_MAP);
-    opt.map->required = NO;
-    opt.map->guisection = _("Required");
-
+    
     scan_rules();
 
     opt.colr = G_define_option();
@@ -213,7 +211,9 @@
     flag.l = G_define_flag();
     flag.l->key = 'l';
     flag.l->description = _("List available rules then exit");
-    
+    flag.l->suppress_required = TRUE;
+    flag.l->guisection = _("Print");
+      
     flag.n = G_define_flag();
     flag.n->key = 'n';
     flag.n->description = _("Invert colors");



More information about the grass-commit mailing list