[GRASS-SVN] r34033 - grass/trunk/general/g.findfile

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Oct 28 09:10:56 EDT 2008


Author: neteler
Date: 2008-10-28 09:10:56 -0400 (Tue, 28 Oct 2008)
New Revision: 34033

Modified:
   grass/trunk/general/g.findfile/main.c
Log:
first required, then optional parms

Modified: grass/trunk/general/g.findfile/main.c
===================================================================
--- grass/trunk/general/g.findfile/main.c	2008-10-27 23:02:51 UTC (rev 34032)
+++ grass/trunk/general/g.findfile/main.c	2008-10-28 13:10:56 UTC (rev 34033)
@@ -46,6 +46,12 @@
     opt1->required = YES;
     opt1->description = _("Name of an element");
 
+    opt3 = G_define_option();
+    opt3->key = "file";
+    opt3->type = TYPE_STRING;
+    opt3->required = YES;
+    opt3->description = _("Name of an existing map");
+
     opt2 = G_define_option();
     opt2->key = "mapset";
     opt2->type = TYPE_STRING;
@@ -53,12 +59,6 @@
     opt2->description = _("Name of a mapset");
     opt2->answer = "";
 
-    opt3 = G_define_option();
-    opt3->key = "file";
-    opt3->type = TYPE_STRING;
-    opt3->required = YES;
-    opt3->description = _("Name of an existing map");
-
     if (G_parser(argc, argv))
 	exit(EXIT_FAILURE);
 



More information about the grass-commit mailing list