[GRASS-SVN] r58671 - grass/trunk/general/g.region

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jan 10 11:31:24 PST 2014


Author: martinl
Date: 2014-01-10 11:31:24 -0800 (Fri, 10 Jan 2014)
New Revision: 58671

Modified:
   grass/trunk/general/g.region/main.c
Log:
g.region: use standardized option for region


Modified: grass/trunk/general/g.region/main.c
===================================================================
--- grass/trunk/general/g.region/main.c	2014-01-10 19:31:02 UTC (rev 58670)
+++ grass/trunk/general/g.region/main.c	2014-01-10 19:31:24 UTC (rev 58671)
@@ -156,14 +156,8 @@
 
     /* parameters */
 
-    parm.region = G_define_option();
-    parm.region->key = "region";
-    parm.region->key_desc = "name";
-    parm.region->required = NO;
-    parm.region->multiple = NO;
-    parm.region->type = TYPE_STRING;
+    parm.region = G_define_standard_option(G_OPT_M_REGION);
     parm.region->description = _("Set current region from named region");
-    parm.region->gisprompt = "old,windows,region";
     parm.region->guisection = _("Existing");
 
     parm.raster = G_define_standard_option(G_OPT_R_MAP);



More information about the grass-commit mailing list