[GRASS-SVN] r63080 - grass/branches/releasebranch_7_0/raster3d/r3.out.ascii

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 26 07:42:22 PST 2014


Author: martinl
Date: 2014-11-26 07:42:22 -0800 (Wed, 26 Nov 2014)
New Revision: 63080

Modified:
   grass/branches/releasebranch_7_0/raster3d/r3.out.ascii/main.c
Log:
r3.out.ascii: use standardized options (#2409) - (merge r63079 from trunk)

Modified: grass/branches/releasebranch_7_0/raster3d/r3.out.ascii/main.c
===================================================================
--- grass/branches/releasebranch_7_0/raster3d/r3.out.ascii/main.c	2014-11-26 15:39:23 UTC (rev 63079)
+++ grass/branches/releasebranch_7_0/raster3d/r3.out.ascii/main.c	2014-11-26 15:42:22 UTC (rev 63080)
@@ -85,7 +85,7 @@
     param.output->description = _("Name for ASCII output file");
 
     param.decimals = G_define_option();
-    param.decimals->key = "dp";
+    param.decimals->key = "precision";
     param.decimals->type = TYPE_INTEGER;
     param.decimals->required = NO;
     param.decimals->multiple = NO;
@@ -93,11 +93,7 @@
     param.decimals->options = "0-20";
     param.decimals->description = _("Number of decimal places for floats");
 
-    param.null_val = G_define_option();
-    param.null_val->key = "null";
-    param.null_val->type = TYPE_STRING;
-    param.null_val->required = NO;
-    param.null_val->description = _("Char string to represent no data cell");
+    param.null_val = G_define_standard_option(G_OPT_M_NULL_VALUE);
     param.null_val->answer = "*";
 
     param.header = G_define_flag();



More information about the grass-commit mailing list