[GRASS-SVN] r40616 - grass/trunk/raster/r.neighbors
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jan 22 04:52:31 EST 2010
Author: huhabla
Date: 2010-01-22 04:52:30 -0500 (Fri, 22 Jan 2010)
New Revision: 40616
Modified:
grass/trunk/raster/r.neighbors/main.c
Log:
Use standard option for text file input
Modified: grass/trunk/raster/r.neighbors/main.c
===================================================================
--- grass/trunk/raster/r.neighbors/main.c 2010-01-22 09:51:23 UTC (rev 40615)
+++ grass/trunk/raster/r.neighbors/main.c 2010-01-22 09:52:30 UTC (rev 40616)
@@ -161,12 +161,10 @@
parm.title->required = NO;
parm.title->description = _("Title of the output raster map");
- parm.weight = G_define_option();
+ parm.weight = G_define_standard_option(G_OPT_F_INPUT);
parm.weight->key = "weight";
- parm.weight->type = TYPE_STRING;
parm.weight->required = NO;
- parm.weight->gisprompt = "old_file,file,input";
- parm.weight->description = _("File containing weights");
+ parm.weight->description = _("Text file containing weights");
parm.gauss = G_define_option();
parm.gauss->key = "gauss";
More information about the grass-commit
mailing list