[GRASS-SVN] r64717 - grass/trunk/general/g.mapset

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Feb 21 20:12:45 PST 2015


Author: ychemin
Date: 2015-02-21 20:12:45 -0800 (Sat, 21 Feb 2015)
New Revision: 64717

Modified:
   grass/trunk/general/g.mapset/main.c
Log:
added G_OPT_M_DIR for gisdbase selection

Modified: grass/trunk/general/g.mapset/main.c
===================================================================
--- grass/trunk/general/g.mapset/main.c	2015-02-21 14:18:23 UTC (rev 64716)
+++ grass/trunk/general/g.mapset/main.c	2015-02-22 04:12:45 UTC (rev 64717)
@@ -66,9 +66,8 @@
     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";



More information about the grass-commit mailing list