[GRASS-SVN] r64221 - grass/trunk/general/g.parser

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jan 16 05:39:13 PST 2015


Author: neteler
Date: 2015-01-16 05:39:12 -0800 (Fri, 16 Jan 2015)
New Revision: 64221

Modified:
   grass/trunk/general/g.parser/g.parser.html
Log:
g.parser: explain also condition syntax for flags

Modified: grass/trunk/general/g.parser/g.parser.html
===================================================================
--- grass/trunk/general/g.parser/g.parser.html	2015-01-16 13:37:01 UTC (rev 64220)
+++ grass/trunk/general/g.parser/g.parser.html	2015-01-16 13:39:12 UTC (rev 64221)
@@ -113,15 +113,22 @@
 </pre></div>
 
 The parser also allows to define "OR" conditions, e.g. requiring raster
-OR vector (for details, see below):
+OR vector (for details, see below), e.g.for options:
 
 <div class="code"><pre>
 #%rules
-#% requires: raster, vector
+#% required: raster, vector
 #%end
 </pre></div>
 
+and e.g., for flags:
 
+<div class="code"><pre>
+#%rules
+#% required: -i,-d,-c
+#%end
+</pre></div>
+
 <h2>NOTES</h2>
 
 An option can be instructed to allow multiple inputs by adding the
@@ -514,9 +521,9 @@
 <h2>SEE ALSO</h2>
 
 <em>
-  <a href="g.filename.html">g.filename</a>,
-  <a href="g.findfile.html">g.findfile</a>,
-  <a href="g.tempfile.html">g.tempfile</a>
+<a href="g.filename.html">g.filename</a>,
+<a href="g.findfile.html">g.findfile</a>,
+<a href="g.tempfile.html">g.tempfile</a>
 </em>
 
 <p>



More information about the grass-commit mailing list