[GRASS-dev] [GRASS GIS] #1641: overwrite flag not mentioned in help file r.mask

#1641: overwrite flag not mentioned in help file r.mask
-------------------------------+--------------------------------------------
Reporter: pvanbosgeo | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Default | Version: unspecified
Keywords: help file, r.mask | Platform: All
      Cpu: x86-64 |
-------------------------------+--------------------------------------------
In the help file of r.mask, information on how to set the 'overwrite'
option is missing.

p.s. I did find out I should use --overwrite instead of the -o flag used
in 6.4 by trying out. This seems to be a change made for all relevant
modules?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1641&gt;
GRASS GIS <http://grass.osgeo.org>

#1641: overwrite flag not mentioned in help file r.mask
-------------------------------+--------------------------------------------
Reporter: pvanbosgeo | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Default | Version: unspecified
Keywords: help file, r.mask | Platform: All
      Cpu: x86-64 |
-------------------------------+--------------------------------------------

Comment(by neteler):

In GRASS 7 it is intended to use --overwrite instead of the old -o flag.

Indeed, r.mask --help lacks
{{{
  --o Allow output files to overwrite existing files
}}}

I don't know why - to be fixed.

Sidenote: GRASS 6 where both should work I had to fix it:
r51452 (for GRASS 6.4.3) and r51453 (GRASS 6.5).
The module will now accept both -o and --overwrite.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1641#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1641: overwrite flag not mentioned in help file r.mask
-------------------------------+--------------------------------------------
Reporter: pvanbosgeo | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Default | Version: unspecified
Keywords: help file, r.mask | Platform: All
      Cpu: x86-64 |
-------------------------------+--------------------------------------------

Comment(by glynn):

Replying to [comment:1 neteler]:

> Indeed, r.mask --help lacks
{{{
  --o Allow output files to overwrite existing files
}}}
>
> I don't know why - to be fixed.

Because r.mask doesn't have any options with "gisprompt: new,..." (the
output map name is hard-coded as "MASK", so there isn't any suitable
option).

In C modules, you can force --o to be documented by setting the
"overwrite" field of the GModule structure before calling G_parser(), but
there isn't any way to do this for scripts (it would require an
enhancement to g.parser).

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1641#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1641: overwrite flag not mentioned in help file r.mask
-------------------------+--------------------------------------------------
  Reporter: pvanbosgeo | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: Default | Version: unspecified
Resolution: fixed | Keywords: help file, r.mask
  Platform: All | Cpu: x86-64
-------------------------+--------------------------------------------------
Changes (by pvanbosgeo):

  * status: new => closed
  * resolution: => fixed

Comment:

This is now mentioned in the manual page (for version 7.0), so setting
this as fixed

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1641#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>