[GRASS5] d.legend and d.out.png

Glynn Clements glynn.clements at virgin.net
Mon Aug 23 12:12:43 EDT 2004


Hamish wrote:

> > A couple of modules initialise opt->answer dynamically (e.g. based
> > upon the current region or information stored on the selected
> > monitor). In that situation, if commands are remembered (scripting,
> > command history), there's a difference between omitting an option and
> > explicitly supplying the default value.
> 
> d.what.vect in 5.7 seems to do the right thing.

... for certain values of "right".

> If you type: 'd.what.vect'
> 
>  - If there is no vector displayed you get a GUI asking for one
>  - if there is one, it automatically goes into query mode

For consistency, I would prefer an explicit switch. With no arguments,
you always get a GUI. With the switch, you never get a GUI; if a
vector is displayed, it goes into query mode; if there isn't, you get
an error.

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-dev mailing list