[GRASS-SVN] r62998 - grass/branches/releasebranch_7_0/raster/r.coin

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 26 02:34:17 PST 2014


Author: martinl
Date: 2014-11-26 02:34:17 -0800 (Wed, 26 Nov 2014)
New Revision: 62998

Modified:
   grass/branches/releasebranch_7_0/raster/r.coin/main.c
Log:
r.coin: use standardized options (#2409) - (merge r62997 from trunk)

Modified: grass/branches/releasebranch_7_0/raster/r.coin/main.c
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.coin/main.c	2014-11-26 10:33:34 UTC (rev 62997)
+++ grass/branches/releasebranch_7_0/raster/r.coin/main.c	2014-11-26 10:34:17 UTC (rev 62998)
@@ -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