[GRASS-SVN] r63078 - grass/branches/releasebranch_7_0/raster3d/r3.in.v5d
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Nov 26 07:37:21 PST 2014
Author: martinl
Date: 2014-11-26 07:37:21 -0800 (Wed, 26 Nov 2014)
New Revision: 63078
Modified:
grass/branches/releasebranch_7_0/raster3d/r3.in.v5d/main.c
Log:
r3.in.v5d: use standardized options (#2409) - (merge r63076 from trunk)
Modified: grass/branches/releasebranch_7_0/raster3d/r3.in.v5d/main.c
===================================================================
--- grass/branches/releasebranch_7_0/raster3d/r3.in.v5d/main.c 2014-11-26 15:37:03 UTC (rev 63077)
+++ grass/branches/releasebranch_7_0/raster3d/r3.in.v5d/main.c 2014-11-26 15:37:21 UTC (rev 63078)
@@ -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