[GRASS-SVN] r47703 - grass/branches/releasebranch_6_4/raster/r.out.arc

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 17 09:17:00 EDT 2011


Author: neteler
Date: 2011-08-17 06:17:00 -0700 (Wed, 17 Aug 2011)
New Revision: 47703

Modified:
   grass/branches/releasebranch_6_4/raster/r.out.arc/main.c
Log:
parser simplification; typo

Modified: grass/branches/releasebranch_6_4/raster/r.out.arc/main.c
===================================================================
--- grass/branches/releasebranch_6_4/raster/r.out.arc/main.c	2011-08-17 12:59:35 UTC (rev 47702)
+++ grass/branches/releasebranch_6_4/raster/r.out.arc/main.c	2011-08-17 13:17:00 UTC (rev 47703)
@@ -62,20 +62,12 @@
 	_("Converts a raster map layer into an ESRI ARCGRID file.");
 
     /* Define the different options */
-    parm.map = G_define_option();
-    parm.map->key = "input";
-    parm.map->type = TYPE_STRING;
-    parm.map->required = YES;
-    parm.map->gisprompt = "old,cell,raster";
-    parm.map->description = _("Name of an existing raster map layer");
+    parm.map = G_define_standard_option(G_OPT_R_INPUT);
 
-    parm.output = G_define_option();
-    parm.output->key = "output";
-    parm.output->type = TYPE_STRING;
-    parm.output->required = YES;
+    parm.output = G_define_standard_option(G_OPT_R_OUTPUT);
     parm.output->gisprompt = "new_file,file,output";
     parm.output->description =
-	_("Name of an output ARC-GID map (use out=- for stdout)");
+	_("Name of an output ARC-GRID map (use out=- for stdout)");
 
     parm.dp = G_define_option();
     parm.dp->key = "dp";



More information about the grass-commit mailing list