[GRASS-SVN] r36895 - grass/trunk/raster/r.out.pov

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Apr 25 13:07:30 EDT 2009


Author: neteler
Date: 2009-04-25 13:07:30 -0400 (Sat, 25 Apr 2009)
New Revision: 36895

Modified:
   grass/trunk/raster/r.out.pov/main.c
Log:
parser interface standardized

Modified: grass/trunk/raster/r.out.pov/main.c
===================================================================
--- grass/trunk/raster/r.out.pov/main.c	2009-04-25 06:30:54 UTC (rev 36894)
+++ grass/trunk/raster/r.out.pov/main.c	2009-04-25 17:07:30 UTC (rev 36895)
@@ -122,17 +122,9 @@
 	_("Converts a raster map layer into a height-field file for POVRAY.");
 
     /* Define the different options */
-    parm.map = G_define_option();
-    parm.map->key = "map";
-    parm.map->type = TYPE_STRING;
-    parm.map->required = YES;
-    parm.map->gisprompt = "old,cell,raster";
-    parm.map->description = _("Name of an existing raster map");
+    parm.map = G_define_standard_option(G_OPT_R_INPUT);
 
-    parm.tga = G_define_option();
-    parm.tga->key = "tga";
-    parm.tga->type = TYPE_STRING;
-    parm.tga->required = YES;
+    parm.tga = G_define_standard_option(G_OPT_F_OUTPUT);
     parm.tga->description =
 	_("Name of output povray file (TGA height field file)");
 



More information about the grass-commit mailing list