New --script flag was: Re: [GRASS-dev] how to display a vector map for d.path in gis.m?

Markus Neteler neteler at itc.it
Wed Jan 31 08:10:06 EST 2007


Glynn Clements wrote on 01/30/2007 11:04 PM:
> Glynn Clements wrote:
>
>   
>> Hmm; it might be useful to have some means of automatically generating
>> the corresponding g.parser description for a given command. There are
>> probably quite a few scripts whose options are (almost) identical to
>> an existing command. I'll look into it.
>>     
>
> I've extended G_parser() with a --script flag, which writes out a
> script with g.parser syntax to mimic the behaviour of the module. This
> shoud make it easier to write scripts which mimic an existing command.
>   
Really cool! Thanks, Glynn.

Markus




More information about the grass-dev mailing list