[GRASS-dev] g.list -a

Glynn Clements glynn at gclements.plus.com
Sun Jan 7 05:54:54 EST 2007


Martin Landa wrote:

> > It's used differently; g.list has a type= option where the valid
> > option values are the types, while g.remove, g.rename and g.copy have
> > a separate option for each type.
> >
> > In terms of implementing "g.list type=all", the obvious first step
> > would be to add element->multiple=YES to the type= option so that you
> > can do e.g. "g.list type=rast,vect". Once that was done, it would be
> > relatively straightforward to allow "type=all".
> 
> well, the new data type 'all' would be useful. I can imagine, for
> example `g.copy all=r,r1` or `g.remove all=r`, etc.

I can't imagine that ever being useful. Or, rather, I can imagine the
danger far exceeding the usefulness, e.g. using "g.remove all=foo" as
a shorthand for "g.remove rast=foo ; g.remove vect=foo" and forgetting
that you had a region, icon, etc named "foo" which you didn't want to
delete.

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




More information about the grass-dev mailing list