[GRASS-dev] Re: options for scripts

Glynn Clements glynn at gclements.plus.com
Tue Dec 1 04:20:53 EST 2009


Michael Barton wrote:

> Potentially, are all the options listed in parser_standard_options.c  
> available to be used and parsed in scripts as well as in C modules?
> 
> I just tried 3. Two worked and one didn't. So I'm wondering which is  
> the fluke--the options for database table name and database columns  
> working or the one for database driver not working (actually it partly  
> worked in that the wxPython menuform.py generated the correct control,  
> but it lacked the list of drivers to populate it)?
> 
> If all those in parser_standard_options.c CAN be used in scripts, then  
> it is useful to update the scripting guidelines to indicate this.

I'm not sure what you're asking.

The G_OPT_* constants are only meaningful to
G_define_standard_option(), which can only be used from C.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list