Browse Source

g.mapsets: use standardized option for mapset

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58617 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 years ago
parent
commit
22acafcaa7
1 changed files with 1 additions and 3 deletions
  1. 1 3
      general/g.mapsets/main.c

+ 1 - 3
general/g.mapsets/main.c

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