[GRASS-SVN] r30370 - grass/trunk/imagery/i.target
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Feb 26 20:44:19 EST 2008
Author: hamish
Date: 2008-02-26 20:44:19 -0500 (Tue, 26 Feb 2008)
New Revision: 30370
Modified:
grass/trunk/imagery/i.target/main.c
Log:
todo comment, minor cleaning
Modified: grass/trunk/imagery/i.target/main.c
===================================================================
--- grass/trunk/imagery/i.target/main.c 2008-02-26 23:26:24 UTC (rev 30369)
+++ grass/trunk/imagery/i.target/main.c 2008-02-27 01:44:19 UTC (rev 30370)
@@ -45,6 +45,7 @@
_("Targets an imagery group to a GRASS location and mapset.");
group = G_define_standard_option (G_OPT_I_GROUP);
+ group->gisprompt = "any,group,group";
loc = G_define_option();
loc->key = "location";
@@ -91,14 +92,14 @@
group->answer, G_location(), G_mapset());
} else {
/* point group target to specified mapset and location */
+
+/* TODO: check if it is in current mapset and strip off @mapset part, if present */
+
I_put_target(group->answer, loc->answer, mapset->answer);
G_message(_("Group <%s> targeted for location [%s], mapset [%s]"),
group->answer, loc->answer, mapset->answer);
}
- G_done_msg (_("Done."));
+ G_done_msg(" ");
exit(EXIT_SUCCESS);
}
-
-
-
More information about the grass-commit
mailing list