Sfoglia il codice sorgente

r.coin use standardized options (https://trac.osgeo.org/grass/ticket/2409)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@62997 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 anni fa
parent
commit
ff8a042a90
1 ha cambiato i file con 7 aggiunte e 13 eliminazioni
  1. 7 13
      raster/r.coin/main.c

+ 7 - 13
raster/r.coin/main.c

@@ -69,19 +69,13 @@ int main(int argc, char *argv[])
 	_("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.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.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_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";