[GRASS-dev] short versions of parameter names [was: Re:
[GRASS-user] Python GUI]
Moritz Lennert
mlennert at club.worldonline.be
Wed Oct 1 05:51:50 EDT 2008
[moving this over to grass-dev]
On 01/10/08 11:15, Hamish wrote:
>>> 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
>
Ok, I get it. Any reason this is so ? Would it be possible / desirable
to change the parser to allow short versions of parameter names ? Maybe
have this as an option in the definition, i.e. parameter->short=YES ?
Moritz
More information about the grass-dev
mailing list