[GRASS-dev] table with the parser standard options

Luca Delucchi lucadeluge at gmail.com
Tue Jun 30 23:31:38 PDT 2015


On 1 July 2015 at 06:42, Pietro <peter.zamb at gmail.com> wrote:
> Dear devs,
>
> I was not able to find a table in the GRASS manual pages with a
> summary of all the default options as define in
> parser_standard_options.c (lib/gis/parser_standard_options.c).
> Therefore I wrote a python command line tool to extract them from the
> source and print/write to a file in CSV/HTML format.
> Probably I should use regexp but I'm not good with them...
>
> The command line tool is attached.
>
> Some usage example are:
>
> $ python2 options.py -t lib/gis/parser_standard_options.c -f csv -o
> stadard_options.csv
>
> The command line should be able also to download the source file
> directly from a link but it works only partially.
>
> I believe we should add the generated table somewhere in the manual docs.
> Should I add this python script to grass_addons/tools?
>

if we want add the table in the manual docs (I'm really support this
idea) you should add this tool in the main code tools directory [0]

> What do you think?
>

+1

> Pietro
>

[0] https://trac.osgeo.org/grass/browser/grass/trunk/tools

-- 
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org


More information about the grass-dev mailing list