[GRASS-SVN] r63028 - grass/trunk/raster/r.profile

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 26 05:08:30 PST 2014


Author: martinl
Date: 2014-11-26 05:08:29 -0800 (Wed, 26 Nov 2014)
New Revision: 63028

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

Modified: grass/trunk/raster/r.profile/main.c
===================================================================
--- grass/trunk/raster/r.profile/main.c	2014-11-26 13:07:11 UTC (rev 63027)
+++ grass/trunk/raster/r.profile/main.c	2014-11-26 13:08:29 UTC (rev 63028)
@@ -84,12 +84,8 @@
     parm.res->description =
 	_("Resolution along profile (default = current region resolution)");
 
-    parm.null_str = G_define_option();
-    parm.null_str->key = "null";
-    parm.null_str->type = TYPE_STRING;
-    parm.null_str->required = NO;
+    parm.null_str = G_define_standard_option(G_OPT_M_NULL_VALUE);
     parm.null_str->answer = "*";
-    parm.null_str->description = _("Character to represent no data cell");
 
     parm.g = G_define_flag();
     parm.g->key = 'g';



More information about the grass-commit mailing list