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

On Thu, Aug 18, 2016 at 4:27 PM, <svn_grass@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

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

Maybe it is more like -r Reverse selection?

Markus

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

On Thu, Aug 18, 2016 at 4:27 PM, <svn_grass@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? :slight_smile: 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.