[GRASS-user] Python GUI

Hamish hamish_b at yahoo.com
Wed Oct 1 05:15:52 EDT 2008


> > The opt->options part of the parser only allows
> through full names.

Moritz Lennert wrote:
> But it should be possible to parse the answer taking into account 
> shorter versions. See, for example, how type_opt is parsed on lines 
> 478ff in display/d.vect/main.c.


sure there's code in d.vect to handle it, but the parser won't actually
let you give anything but the full words listed in the ->options line.


G64> d.vect fields type=bound --q

ERROR: value <bound> out of range for parameter <type>
       Legal range: point,line,boundary,centroid,area,face


Hamish



      



More information about the grass-user mailing list