[GRASS-SVN] r63015 - in grass/trunk: db/db.select raster/r.describe

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 26 03:27:03 PST 2014


Author: martinl
Date: 2014-11-26 03:27:03 -0800 (Wed, 26 Nov 2014)
New Revision: 63015

Modified:
   grass/trunk/db/db.select/main.c
   grass/trunk/raster/r.describe/main.c
Log:
use G_OPT_M_NULL_VALUE

Modified: grass/trunk/db/db.select/main.c
===================================================================
--- grass/trunk/db/db.select/main.c	2014-11-26 11:21:37 UTC (rev 63014)
+++ grass/trunk/db/db.select/main.c	2014-11-26 11:27:03 UTC (rev 63015)
@@ -232,11 +232,7 @@
     vs->answer = NULL;
     vs->guisection = _("Format");
 
-    nv = G_define_option();
-    nv->key = "nv";
-    nv->type = TYPE_STRING;
-    nv->required = NO;
-    nv->description = _("Null value indicator");
+    nv = G_define_standard_option(G_OPT_M_NULL_VALUE);
     nv->guisection = _("Format");
 
     output = G_define_standard_option(G_OPT_F_OUTPUT); 

Modified: grass/trunk/raster/r.describe/main.c
===================================================================
--- grass/trunk/raster/r.describe/main.c	2014-11-26 11:21:37 UTC (rev 63014)
+++ grass/trunk/raster/r.describe/main.c	2014-11-26 11:27:03 UTC (rev 63015)
@@ -59,13 +59,8 @@
     /* define different options */
     option.map = G_define_standard_option(G_OPT_R_MAP);
 
-    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.nsteps = G_define_option();
     option.nsteps->key = "nsteps";



More information about the grass-commit mailing list