[GRASS-SVN] r58617 - grass/trunk/general/g.mapsets
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jan 5 10:22:46 PST 2014
Author: martinl
Date: 2014-01-05 10:22:46 -0800 (Sun, 05 Jan 2014)
New Revision: 58617
Modified:
grass/trunk/general/g.mapsets/main.c
Log:
g.mapsets: use standardized option for mapset
Modified: grass/trunk/general/g.mapsets/main.c
===================================================================
--- grass/trunk/general/g.mapsets/main.c 2014-01-05 17:58:06 UTC (rev 58616)
+++ grass/trunk/general/g.mapsets/main.c 2014-01-05 18:22:46 UTC (rev 58617)
@@ -67,9 +67,7 @@
module->description = _("Affects the user's access to data existing "
"under the other mapsets in the current location.");
- opt.mapset = G_define_option();
- opt.mapset->key = "mapset";
- opt.mapset->type = TYPE_STRING;
+ opt.mapset = G_define_standard_option(G_OPT_M_MAPSET);
opt.mapset->required = YES;
opt.mapset->multiple = YES;
opt.mapset->description = _("Name(s) of existing mapset(s) to add/remove or set");
More information about the grass-commit
mailing list