[GRASS-SVN] r38403 - grass/branches/develbranch_6/general/g.parser
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jul 14 01:13:49 EDT 2009
Author: hamish
Date: 2009-07-14 01:13:48 -0400 (Tue, 14 Jul 2009)
New Revision: 38403
Modified:
grass/branches/develbranch_6/general/g.parser/description.html
grass/branches/develbranch_6/general/g.parser/test.pl
grass/branches/develbranch_6/general/g.parser/test.py
grass/branches/develbranch_6/general/g.parser/test.sh
Log:
further cleaning
Modified: grass/branches/develbranch_6/general/g.parser/description.html
===================================================================
--- grass/branches/develbranch_6/general/g.parser/description.html 2009-07-14 01:48:59 UTC (rev 38402)
+++ grass/branches/develbranch_6/general/g.parser/description.html 2009-07-14 05:13:48 UTC (rev 38403)
@@ -52,6 +52,7 @@
#%end
</pre></div>
+
<h2>NOTES</h2>
An option can be instructed to allow multiple inputs by adding the
@@ -106,29 +107,36 @@
v.in.db --script
</pre></div>
+
<h2>Help page template (HTML)</h2>
-The flag <b>--html-description</b> added to a GRASS command,
+The flag <b>--html-description</b> added to a GRASS command
generates a related help page template in HTML. Example:
<div class="code"><pre>
v.in.db --html-description
</pre></div>
+
<h2>GUI window parser (XML)</h2>
-The flag <b>--interface-description</b> added to a GRASS command,
+The flag <b>--interface-description</b> added to a GRASS command
generates a related help page template in XML. Example:
<div class="code"><pre>
v.in.db --interface-description
</pre></div>
--<h2>GUI window parser (TclTk)</h2>
+<h2>GUI window parser (Tcl/Tk)</h2>
-The flag <b>--tcltk</b> added to a GRASS command, generates a a XML
-description of the GUI interface. Example
+The flag <b>--tcltk</b> added to a GRASS command generates Tcl/Tk
+code suitable for building the GUI interface. Example:
+<div class="code"><pre>
+v.in.db --tcltk
+</pre></div>
+
+
<h2>TRANSLATION</h2>
<em>g.parser</em> provides some support for translating the options of
@@ -143,6 +151,7 @@
<tt>stdout</tt>, one per line, and exit. This is for internal use within
the build system to prepare GRASS scripts for translation.
+
<h2>EXAMPLES</h2>
<h3>Example code for SHELL</h3>
@@ -296,6 +305,7 @@
option1 An option
</pre></div>
+
<h3>Example code for Perl</h3>
<div class="code"><pre>
@@ -365,6 +375,10 @@
</pre></div>
+The <tt>test.pl</tt> script will provide a GUI and usage help text similar
+to the other examples above.
+
+
<h2>SEE ALSO</h2>
<em>
@@ -378,6 +392,7 @@
and the <tt>SUBMITTING_SCRIPTS</tt> file in the GRASS source code.
+
<h2>AUTHOR</h2>
Glynn Clements
Modified: grass/branches/develbranch_6/general/g.parser/test.pl
===================================================================
--- grass/branches/develbranch_6/general/g.parser/test.pl 2009-07-14 01:48:59 UTC (rev 38402)
+++ grass/branches/develbranch_6/general/g.parser/test.pl 2009-07-14 05:13:48 UTC (rev 38403)
@@ -8,26 +8,26 @@
#%End
#%flag
#% key: f
-#% description: a flag
-#%END
+#% description: A flag
+#%end
#%option
#% key: raster
#% type: string
#% gisprompt: old,cell,raster
-#% description: raster input map
+#% description: Raster input map
#% required : yes
#%end
#%option
#% key: vector
#% type: string
#% gisprompt: old,vector,vector
-#% description: vector input map
+#% description: Vector input map
#% required : yes
#%end
#%option
#% key: option1
#% type: string
-#% description: an option
+#% description: An option
#% required : yes
#%end
Modified: grass/branches/develbranch_6/general/g.parser/test.py
===================================================================
--- grass/branches/develbranch_6/general/g.parser/test.py 2009-07-14 01:48:59 UTC (rev 38402)
+++ grass/branches/develbranch_6/general/g.parser/test.py 2009-07-14 05:13:48 UTC (rev 38403)
@@ -10,26 +10,26 @@
#%End
#%flag
#% key: f
-#% description: a flag
-#%END
+#% description: A flag
+#%end
#%option
#% key: raster
#% type: string
#% gisprompt: old,cell,raster
-#% description: raster input map
+#% description: Raster input map
#% required : yes
#%end
#%option
#% key: vector
#% type: string
#% gisprompt: old,vector,vector
-#% description: vector input map
+#% description: Vector input map
#% required : yes
#%end
#%option
#% key: option1
#% type: string
-#% description: an option
+#% description: An option
#% required : yes
#%end
Modified: grass/branches/develbranch_6/general/g.parser/test.sh
===================================================================
--- grass/branches/develbranch_6/general/g.parser/test.sh 2009-07-14 01:48:59 UTC (rev 38402)
+++ grass/branches/develbranch_6/general/g.parser/test.sh 2009-07-14 05:13:48 UTC (rev 38403)
@@ -3,31 +3,31 @@
# g.parser demo script
#%Module
-#% description: g.parser test script
+#% description: g.parser test script
#% keywords: keyword1, keyword2
#%End
#%flag
#% key: f
-#% description: a flag
-#%END
+#% description: A flag
+#%end
#%option
#% key: raster
#% type: string
#% gisprompt: old,cell,raster
-#% description: raster input map
+#% description: Raster input map
#% required : yes
#%end
#%option
#% key: vector
#% type: string
#% gisprompt: old,vector,vector
-#% description: vector input map
+#% description: Vector input map
#% required : yes
#%end
#%option
#% key: option1
#% type: string
-#% description: an option
+#% description: An option
#% required : yes
#%end
More information about the grass-commit
mailing list