[GRASS-SVN] r34034 - grass/branches/develbranch_6/general/g.findfile
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Oct 28 09:11:08 EDT 2008
Author: neteler
Date: 2008-10-28 09:11:08 -0400 (Tue, 28 Oct 2008)
New Revision: 34034
Modified:
grass/branches/develbranch_6/general/g.findfile/main.c
Log:
first required, then optional parms (merge from trunk, r34033)
Modified: grass/branches/develbranch_6/general/g.findfile/main.c
===================================================================
--- grass/branches/develbranch_6/general/g.findfile/main.c 2008-10-28 13:10:56 UTC (rev 34033)
+++ grass/branches/develbranch_6/general/g.findfile/main.c 2008-10-28 13:11:08 UTC (rev 34034)
@@ -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