#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?
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.
#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).