[GRASS-SVN] r51912 - grass/trunk/general/g.parser
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu May 31 08:09:41 PDT 2012
Author: martinl
Date: 2012-05-31 08:09:40 -0700 (Thu, 31 May 2012)
New Revision: 51912
Modified:
grass/trunk/general/g.parser/parse.c
Log:
g.parser: support module->overwrite
Modified: grass/trunk/general/g.parser/parse.c
===================================================================
--- grass/trunk/general/g.parser/parse.c 2012-05-31 14:56:42 UTC (rev 51911)
+++ grass/trunk/general/g.parser/parse.c 2012-05-31 15:09:40 UTC (rev 51912)
@@ -84,6 +84,11 @@
return;
}
+ if (G_strcasecmp(cmd, "overwrite") == 0) {
+ ctx->module->overwrite = parse_boolean(ctx, arg);
+ return;
+ }
+
if (G_strcasecmp(cmd, "end") == 0) {
ctx->state = S_TOPLEVEL;
return;
More information about the grass-commit
mailing list