[GRASS-SVN] r62850 - grass/trunk/general/g.parser
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Nov 21 10:31:54 PST 2014
Author: glynn
Date: 2014-11-21 10:31:54 -0800 (Fri, 21 Nov 2014)
New Revision: 62850
Modified:
grass/trunk/general/g.parser/rules.c
Log:
Support "required" rule
Modified: grass/trunk/general/g.parser/rules.c
===================================================================
--- grass/trunk/general/g.parser/rules.c 2014-11-21 16:13:00 UTC (rev 62849)
+++ grass/trunk/general/g.parser/rules.c 2014-11-21 18:31:54 UTC (rev 62850)
@@ -61,6 +61,11 @@
return;
}
+ if (G_strcasecmp(cmd, "required") == 0) {
+ add_rule(ctx, RULE_REQUIRED, arg);
+ return;
+ }
+
if (G_strcasecmp(cmd, "requires") == 0) {
add_rule(ctx, RULE_REQUIRES, arg);
return;
More information about the grass-commit
mailing list