[GRASS-SVN] r32008 - grass/trunk/imagery/i.rectify
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jul 6 05:27:32 EDT 2008
Author: neteler
Date: 2008-07-06 05:27:32 -0400 (Sun, 06 Jul 2008)
New Revision: 32008
Modified:
grass/trunk/imagery/i.rectify/main.c
Log:
standardize parser
Modified: grass/trunk/imagery/i.rectify/main.c
===================================================================
--- grass/trunk/imagery/i.rectify/main.c 2008-07-06 09:21:21 UTC (rev 32007)
+++ grass/trunk/imagery/i.rectify/main.c 2008-07-06 09:27:32 UTC (rev 32008)
@@ -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