[GRASS5] SG3d and g.parser

As time permits me, I would like to write more html man pages for
commands which are undocumented or need updating.

With this purpose in mind, I have 2 questions:

(1) Is SG3d only usable on Silicon Graphics machines as the
    this page says: http://grass.itc.it/gdp/html_grass5/html/SG3d.html
    or does this need to be updated?

(2) Can someone give me an example of the usage of g.parser?
    I don't understand exactly how to use this command.

Other commands I am looking at are:
v.area2line
v.line2area
r.his
d.monsize
d.resize

If you have requests or a suggested priority list, let me know.

John Gillette

John Gillette wrote:

(2) Can someone give me an example of the usage of g.parser?
    I don't understand exactly how to use this command.

There is a sample script: src/general/g.parser/test.sh.

The general idea is:

1. Describe the module/options/flags by adding comments beginning with
"#%" to the start of the script. The field names match those in the
GModule, Option and Flag structs.

2. If the first argument isn't "@ARGS_PARSED@", invoke g.parser with
the script name and its arguments.

3. g.parser will parse the command line according to the comments from
step 1, then re-invoke the script with the value of each option/flag
stored in an environment variable called GIS_OPT_<option name> or
GIS_FLAG_<flag name>.

--
Glynn Clements <glynn.clements@virgin.net>