[GRASS-SVN] r45139 - in grass/trunk: lib/gis raster/r.proj
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jan 21 18:28:11 EST 2011
Author: martinl
Date: 2011-01-21 15:28:11 -0800 (Fri, 21 Jan 2011)
New Revision: 45139
Modified:
grass/trunk/lib/gis/parser_standard_options.c
grass/trunk/raster/r.proj/main.c
Log:
r.proj: use standard option
Modified: grass/trunk/lib/gis/parser_standard_options.c
===================================================================
--- grass/trunk/lib/gis/parser_standard_options.c 2011-01-21 17:56:00 UTC (rev 45138)
+++ grass/trunk/lib/gis/parser_standard_options.c 2011-01-21 23:28:11 UTC (rev 45139)
@@ -496,8 +496,8 @@
Opt->required = NO;
Opt->multiple = NO;
Opt->key_desc = "name";
- Opt->label =
- _("Name of mapset (default: current search path)");
+ Opt->gisprompt = "old,mapset,mapset";
+ Opt->label = _("Name of mapset (default: current search path)");
Opt->description = _("'.' for current mapset");
}
Modified: grass/trunk/raster/r.proj/main.c
===================================================================
--- grass/trunk/raster/r.proj/main.c 2011-01-21 17:56:00 UTC (rev 45138)
+++ grass/trunk/raster/r.proj/main.c 2011-01-21 23:28:11 UTC (rev 45139)
@@ -161,13 +161,8 @@
inlocation->gisprompt = "old,location,location";
inlocation->key_desc = "name";
- imapset = G_define_option();
- imapset->key = "mapset";
- imapset->type = TYPE_STRING;
- imapset->required = NO;
+ imapset = G_define_standard_option(G_OPT_M_MAPSET);
imapset->description = _("Mapset containing input raster map");
- imapset->gisprompt = "old,mapset,mapset";
- imapset->key_desc = "name";
imapset->guisection = _("Source");
indbase = G_define_option();
More information about the grass-commit
mailing list