Просмотр исходного кода

g.mapset: added G_OPT_M_DIR for gisdbase selection
(merge r64717:8 from trunk)


git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@64719 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 10 лет назад
Родитель
Сommit
6f1bd923e2
1 измененных файлов с 1 добавлено и 4 удалено
  1. 1 4
      general/g.mapset/main.c

+ 1 - 4
general/g.mapset/main.c

@@ -66,12 +66,9 @@ int main(int argc, char *argv[])
     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");