[GRASS-SVN] r63057 - grass/trunk/raster/r.stats

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 26 06:25:18 PST 2014


Author: martinl
Date: 2014-11-26 06:25:18 -0800 (Wed, 26 Nov 2014)
New Revision: 63057

Modified:
   grass/trunk/raster/r.stats/main.c
Log:
r.stats: use standardized options (#2409)

Modified: grass/trunk/raster/r.stats/main.c
===================================================================
--- grass/trunk/raster/r.stats/main.c	2014-11-26 14:21:49 UTC (rev 63056)
+++ grass/trunk/raster/r.stats/main.c	2014-11-26 14:25:18 UTC (rev 63057)
@@ -122,13 +122,8 @@
     option.fs->answer = "space";
     option.fs->guisection = _("Formatting");
 
-    option.nv = G_define_option();
-    option.nv->key = "nv";
-    option.nv->type = TYPE_STRING;
-    option.nv->required = NO;
-    option.nv->multiple = NO;
+    option.nv = G_define_standard_option(G_OPT_M_NULL_VALUE);
     option.nv->answer = "*";
-    option.nv->description = _("String representing no data cell value");
     option.nv->guisection = _("Formatting");
 
     option.nsteps = G_define_option();



More information about the grass-commit mailing list