[GRASS-dev] g.list -a

Glynn Clements glynn at gclements.plus.com
Fri Jan 5 23:53:02 EST 2007


Daniel Calvelo wrote:

> [me]
> > How about g.list type=any or g.list type=all?
> 
> [Martin]
> > it is nice idea but there is one problem. The data type list is common
> > for related modules, e.g. g.remove, g.copy, etc. It would affect them
> > also...
> 
> Don't you think it might be helpful there as well?

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".

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




More information about the grass-dev mailing list