[GRASS-SVN] r59917 - in grass/trunk/raster: r.rescale r.rescale.eq
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Apr 24 02:35:26 PDT 2014
Author: hcho
Date: 2014-04-24 02:35:25 -0700 (Thu, 24 Apr 2014)
New Revision: 59917
Modified:
grass/trunk/raster/r.rescale.eq/main.c
grass/trunk/raster/r.rescale/main.c
Log:
Use the standard options
Modified: grass/trunk/raster/r.rescale/main.c
===================================================================
--- grass/trunk/raster/r.rescale/main.c 2014-04-23 22:15:23 UTC (rev 59916)
+++ grass/trunk/raster/r.rescale/main.c 2014-04-24 09:35:25 UTC (rev 59917)
@@ -52,11 +52,7 @@
/* Define the different options */
- parm.input = G_define_option();
- parm.input->key = "input";
- parm.input->type = TYPE_STRING;
- parm.input->required = YES;
- parm.input->gisprompt = "old,cell,raster";
+ parm.input = G_define_standard_option(G_OPT_R_INPUT);
parm.input->description = _("The name of the raster map to be rescaled");
parm.from = G_define_option();
@@ -67,11 +63,7 @@
parm.from->description =
_("The input data range to be rescaled (default: full range of input map)");
- parm.output = G_define_option();
- parm.output->key = "output";
- parm.output->type = TYPE_STRING;
- parm.output->required = YES;
- parm.output->gisprompt = "new,cell,raster";
+ parm.output = G_define_standard_option(G_OPT_R_OUTPUT);
parm.output->description = _("The resulting raster map name");
parm.to = G_define_option();
Modified: grass/trunk/raster/r.rescale.eq/main.c
===================================================================
--- grass/trunk/raster/r.rescale.eq/main.c 2014-04-23 22:15:23 UTC (rev 59916)
+++ grass/trunk/raster/r.rescale.eq/main.c 2014-04-24 09:35:25 UTC (rev 59917)
@@ -57,11 +57,7 @@
/* Define the different options */
- parm.input = G_define_option();
- parm.input->key = "input";
- parm.input->type = TYPE_STRING;
- parm.input->required = YES;
- parm.input->gisprompt = "old,cell,raster";
+ parm.input = G_define_standard_option(G_OPT_R_INPUT);
parm.input->description = _("The name of the raster map to be rescaled");
parm.from = G_define_option();
@@ -72,11 +68,7 @@
parm.from->description =
_("The input data range to be rescaled (default: full range of input map)");
- parm.output = G_define_option();
- parm.output->key = "output";
- parm.output->type = TYPE_STRING;
- parm.output->required = YES;
- parm.output->gisprompt = "new,cell,raster";
+ parm.output = G_define_standard_option(G_OPT_R_OUTPUT);
parm.output->description = _("The resulting raster map name");
parm.to = G_define_option();
More information about the grass-commit
mailing list