[GRASS-SVN] r62997 - grass/trunk/raster/r.coin
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Nov 26 02:33:34 PST 2014
Author: martinl
Date: 2014-11-26 02:33:34 -0800 (Wed, 26 Nov 2014)
New Revision: 62997
Modified:
grass/trunk/raster/r.coin/main.c
Log:
r.coin use standardized options (#2409)
Modified: grass/trunk/raster/r.coin/main.c
===================================================================
--- grass/trunk/raster/r.coin/main.c 2014-11-26 10:30:41 UTC (rev 62996)
+++ grass/trunk/raster/r.coin/main.c 2014-11-26 10:33:34 UTC (rev 62997)
@@ -69,19 +69,13 @@
_("Tabulates the mutual occurrence (coincidence) "
"of categories for two raster map layers.");
- parm.map1 = G_define_option();
- parm.map1->key = "map1";
- parm.map1->required = YES;
- parm.map1->type = TYPE_STRING;
- parm.map1->gisprompt = "old,cell,raster";
- parm.map1->description = _("Name of first raster map");
+ parm.map1 = G_define_standard_option(G_OPT_R_INPUT);
+ parm.map1->key = "first";
+ parm.map1->description = _("Name of first input raster map");
- parm.map2 = G_define_option();
- parm.map2->key = "map2";
- parm.map2->required = YES;
- parm.map2->type = TYPE_STRING;
- parm.map2->gisprompt = "old,cell,raster";
- parm.map2->description = _("Name of second raster map");
+ parm.map2 = G_define_standard_option(G_OPT_R_INPUT);
+ parm.map2->key = "second";
+ parm.map2->description = _("Name of second input raster map");
parm.units = G_define_option();
parm.units->key = "units";
More information about the grass-commit
mailing list