[GRASS-SVN] r63076 - grass/trunk/raster3d/r3.in.v5d
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Nov 26 07:35:21 PST 2014
Author: martinl
Date: 2014-11-26 07:35:21 -0800 (Wed, 26 Nov 2014)
New Revision: 63076
Modified:
grass/trunk/raster3d/r3.in.v5d/main.c
Log:
r3.in.v5d: use standardized options (#2409)
Modified: grass/trunk/raster3d/r3.in.v5d/main.c
===================================================================
--- grass/trunk/raster3d/r3.in.v5d/main.c 2014-11-26 15:32:10 UTC (rev 63075)
+++ grass/trunk/raster3d/r3.in.v5d/main.c 2014-11-26 15:35:21 UTC (rev 63076)
@@ -61,28 +61,13 @@
static void setParams()
{
- param.input = G_define_option();
- param.input->key = "input";
- param.input->type = TYPE_STRING;
- param.input->required = YES;
- param.input->description = "V5D raster map to be imported";
+ param.input = G_define_standard_option(G_OPT_F_INPUT);
+ param.input->description = _("Name of V5D raster file to be imported");
- param.output = G_define_option();
- param.output->key = "output";
- param.output->type = TYPE_STRING;
- param.output->required = YES;
- param.output->multiple = NO;
- param.output->gisprompt = "any,grid3,3d-raster";
- param.output->description = "Name for 3D raster map";
+ param.output = G_define_standard_option(G_OPT_R3_OUTPUT);
- param.nv = G_define_option();
- param.nv->key = "nv";
- param.nv->type = TYPE_STRING;
- param.nv->required = NO;
- param.nv->multiple = NO;
+ param.nv = G_define_standard_option(G_OPT_M_NULL_VALUE);
param.nv->answer = "none";
- param.nv->description =
- "String representing NULL value data cell (use 'none' if no such value)";
}
/*---------------------------------------------------------------------------*/
More information about the grass-commit
mailing list