[GRASS-SVN] r64719 - grass/branches/releasebranch_7_0/general/g.mapset
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Feb 22 01:09:56 PST 2015
Author: martinl
Date: 2015-02-22 01:09:56 -0800 (Sun, 22 Feb 2015)
New Revision: 64719
Modified:
grass/branches/releasebranch_7_0/general/g.mapset/main.c
Log:
g.mapset: added G_OPT_M_DIR for gisdbase selection
(merge r64717:8 from trunk)
Modified: grass/branches/releasebranch_7_0/general/g.mapset/main.c
===================================================================
--- grass/branches/releasebranch_7_0/general/g.mapset/main.c 2015-02-22 09:08:07 UTC (rev 64718)
+++ grass/branches/releasebranch_7_0/general/g.mapset/main.c 2015-02-22 09:09:56 UTC (rev 64719)
@@ -66,12 +66,9 @@
opt.location->description = _("Location name (not location path)");
opt.location->guisection = _("Mapset");
- opt.gisdbase = G_define_option();
+ opt.gisdbase = G_define_standard_option(G_OPT_M_DIR);
opt.gisdbase->key = "dbase";
- opt.gisdbase->type = TYPE_STRING;
opt.gisdbase->required = NO;
- opt.gisdbase->multiple = NO;
- opt.gisdbase->key_desc = "path";
opt.gisdbase->label = _("GIS data directory");
opt.gisdbase->description = _("Full path to the directory where the new location is");
opt.gisdbase->guisection = _("Mapset");
More information about the grass-commit
mailing list