[GRASS-dev] [GRASS-SVN] r69152 - grass/trunk/scripts/g.search.modules

Vaclav Petras wenzeslaus at gmail.com
Thu Aug 18 10:54:08 PDT 2016


On Thu, Aug 18, 2016 at 11:28 AM, Markus Neteler <neteler at osgeo.org> wrote:

> On Thu, Aug 18, 2016 at 4:27 PM,  <svn_grass at osgeo.org> wrote:
> > Author: wenzeslaus
> > Date: 2016-08-18 07:27:36 -0700 (Thu, 18 Aug 2016)
> > New Revision: 69152
> >
> > Modified:
> >    grass/trunk/scripts/g.search.modules/g.search.modules.py
> > Log:
> > g.search.modules: flag to negate/invert selection
> >
> > Useful for reviewing info or manual pages.
> > Alternativeky it could be -i (for invert) but -n (for NOT) used.
>
> In v.extract we use -r Reverse selection
> https://grass.osgeo.org/grass72/manuals/v.extract.html
>
>
Sounds like a match.


> In r.colors etc. we use  -n Invert colors
>

That's argument for or against -n? :-) I can see we could add there -i for
actual color inversion as opposed to color table flipping (probably doesn't
change anything).


>
> Maybe it is more like -r Reverse selection?


There is also some -i for inverse in r.mask and d.rast. -r is used for
reverse in v.edit and v.extract. All three are used for many other things
as well (e.g. -r remove, -n nulls, -i ignore). So I really don't know.
Either of those is good for me.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20160818/c9b94bf7/attachment.html>


More information about the grass-dev mailing list