[GRASS-SVN] r63068 - grass/trunk/raster/r.what

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 26 07:13:31 PST 2014


Author: martinl
Date: 2014-11-26 07:13:31 -0800 (Wed, 26 Nov 2014)
New Revision: 63068

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

Modified: grass/trunk/raster/r.what/main.c
===================================================================
--- grass/trunk/raster/r.what/main.c	2014-11-26 15:12:06 UTC (rev 63067)
+++ grass/trunk/raster/r.what/main.c	2014-11-26 15:13:31 UTC (rev 63068)
@@ -115,12 +115,8 @@
     opt.points->required = NO;
     opt.points->guisection = _("Query");
     
-    opt.null = G_define_option();
-    opt.null->key = "null";
-    opt.null->type = TYPE_STRING;
-    opt.null->required = NO;
+    opt.null = G_define_standard_option(G_OPT_M_NULL_VALUE);
     opt.null->answer = "*";
-    opt.null->description = _("String to represent no data cell");
     opt.null->guisection = _("Print");
     
     opt.output = G_define_standard_option(G_OPT_F_OUTPUT);



More information about the grass-commit mailing list