[GRASS-SVN] r32009 - grass/branches/develbranch_6/imagery/i.rectify

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jul 6 05:27:44 EDT 2008


Author: neteler
Date: 2008-07-06 05:27:44 -0400 (Sun, 06 Jul 2008)
New Revision: 32009

Modified:
   grass/branches/develbranch_6/imagery/i.rectify/main.c
Log:
standardize parser (merge from trunk)

Modified: grass/branches/develbranch_6/imagery/i.rectify/main.c
===================================================================
--- grass/branches/develbranch_6/imagery/i.rectify/main.c	2008-07-06 09:27:32 UTC (rev 32008)
+++ grass/branches/develbranch_6/imagery/i.rectify/main.c	2008-07-06 09:27:44 UTC (rev 32009)
@@ -58,20 +58,8 @@
 	  "transformation for each pixel in the image based on the "
 	  "control points");
 
-    grp = G_define_option();
-    grp->key = "group";
-    grp->type = TYPE_STRING;
-    grp->required = YES;
-    grp->gisprompt = "old,group,group";
-    grp->description = _("Name of imagery group");
-
-    ifile = G_define_option();
-    ifile->key = "input";
-    ifile->type = TYPE_STRING;
+    ifile = G_define_standard_option(G_OPT_R_INPUT);
     ifile->required = NO;
-    ifile->multiple = YES;
-    ifile->gisprompt = "old,cell,raster";
-    ifile->description = _("Name of input raster map(s)");
 
     ext = G_define_option();
     ext->key = "extension";
@@ -96,7 +84,6 @@
     a->description = _("Rectify all images in group");
 
 
-
     if (G_parser(argc, argv))
 	exit(EXIT_FAILURE);
 



More information about the grass-commit mailing list