[GRASS-SVN] r63058 - grass/branches/releasebranch_7_0/raster/r.stats

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


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

Modified:
   grass/branches/releasebranch_7_0/raster/r.stats/main.c
Log:
r.stats: use standardized options (#2409) - (merge r63057 from trunk)

Modified: grass/branches/releasebranch_7_0/raster/r.stats/main.c
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.stats/main.c	2014-11-26 14:25:18 UTC (rev 63057)
+++ grass/branches/releasebranch_7_0/raster/r.stats/main.c	2014-11-26 14:25:52 UTC (rev 63058)
@@ -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