Browse Source

standardize parser

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@32008 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 17 years ago
parent
commit
1051a642f6
1 changed files with 1 additions and 14 deletions
  1. 1 14
      imagery/i.rectify/main.c

+ 1 - 14
imagery/i.rectify/main.c

@@ -58,20 +58,8 @@ int main(int argc, char *argv[])
 	  "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 @@ int main(int argc, char *argv[])
     a->description = _("Rectify all images in group");
 
 
-
     if (G_parser(argc, argv))
 	exit(EXIT_FAILURE);