[GRASS-SVN] r58797 - grass/trunk/raster/r.contour

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jan 29 08:14:24 PST 2014


Author: martinl
Date: 2014-01-29 08:14:24 -0800 (Wed, 29 Jan 2014)
New Revision: 58797

Modified:
   grass/trunk/raster/r.contour/main.c
Log:
r.contour: more guisections

Modified: grass/trunk/raster/r.contour/main.c
===================================================================
--- grass/trunk/raster/r.contour/main.c	2014-01-29 14:36:18 UTC (rev 58796)
+++ grass/trunk/raster/r.contour/main.c	2014-01-29 16:14:24 UTC (rev 58797)
@@ -93,31 +93,35 @@
     map = G_define_standard_option(G_OPT_R_INPUT);
     vect = G_define_standard_option(G_OPT_V_OUTPUT);
 
+    step = G_define_option();
+    step->key = "step";
+    step->type = TYPE_DOUBLE;
+    step->required = NO;
+    step->description = _("Increment between contour levels");
+    step->guisection = _("Contour levels");
+
     levels = G_define_option();
     levels->key = "levels";
     levels->type = TYPE_DOUBLE;
     levels->required = NO;
     levels->multiple = YES;
     levels->description = _("List of contour levels");
+    levels->guisection = _("Contour levels");
 
     min = G_define_option();
     min->key = "minlevel";
     min->type = TYPE_DOUBLE;
     min->required = NO;
     min->description = _("Minimum contour level");
+    min->guisection = _("Contour levels");
 
     max = G_define_option();
     max->key = "maxlevel";
     max->type = TYPE_DOUBLE;
     max->required = NO;
     max->description = _("Maximum contour level");
+    max->guisection = _("Contour levels");
 
-    step = G_define_option();
-    step->key = "step";
-    step->type = TYPE_DOUBLE;
-    step->required = NO;
-    step->description = _("Increment between contour levels");
-
     cut = G_define_option();
     cut->key = "cut";
     cut->type = TYPE_INTEGER;
@@ -130,7 +134,8 @@
 	exit(EXIT_FAILURE);
 
     if (!levels->answers && !step->answer) {
-	G_fatal_error(_("Neither \"levels\" nor \"step\" parameter specified."));
+        G_fatal_error(_("Neither <%s> nor <%s> option must be specified"),
+                      levels->key, step->key);
     }
 
     name = map->answer;



More information about the grass-commit mailing list