[GRASS-SVN] r56635 - grass/trunk/raster/r.in.gridatb

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jun 8 02:05:35 PDT 2013


Author: hamish
Date: 2013-06-08 02:05:35 -0700 (Sat, 08 Jun 2013)
New Revision: 56635

Modified:
   grass/trunk/raster/r.in.gridatb/main.c
Log:
use G_define_standard_option()s

Modified: grass/trunk/raster/r.in.gridatb/main.c
===================================================================
--- grass/trunk/raster/r.in.gridatb/main.c	2013-06-07 16:59:55 UTC (rev 56634)
+++ grass/trunk/raster/r.in.gridatb/main.c	2013-06-08 09:05:35 UTC (rev 56635)
@@ -45,24 +45,20 @@
     G_add_keyword(_("raster"));
     G_add_keyword(_("import"));
     module->description =
-	_("Imports GRIDATB.FOR map file (TOPMODEL) into GRASS raster map");
+	_("Imports GRIDATB.FOR map file (TOPMODEL) into a GRASS raster map.");
 
-    params.input = G_define_option();
-    params.input->key = "input";
+    params.input = G_define_standard_option(G_OPT_F_INPUT);
     params.input->description = _("GRIDATB i/o map file");
-    params.input->type = TYPE_STRING;
     params.input->required = YES;
+    params.input->gisprompt = "old,file,file";
 
-    params.output = G_define_option();
-    params.output->key = "output";
-    params.output->description = _("Name for output raster map");
-    params.output->type = TYPE_STRING;
+    params.output = G_define_standard_option(G_OPT_R_OUTPUT);
     params.output->required = YES;
-    params.output->gisprompt = "new,cell,raster";
 
     if (G_parser(argc, argv))
 	exit(EXIT_FAILURE);
 
+
     file = params.input->answer;
     oname = params.output->answer;
 



More information about the grass-commit mailing list