Opened 13 years ago
Closed 12 years ago
#1641 closed defect (fixed)
overwrite flag not mentioned in help file r.mask
Reported by: | pvanbosgeo | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.0.0 |
Component: | Default | Version: | unspecified |
Keywords: | help file, r.mask | Cc: | |
CPU: | x86-64 | Platform: | All |
Description
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?
Change History (3)
follow-up: 2 comment:1 by , 13 years ago
comment:2 by , 13 years ago
Replying to 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).
comment:3 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This is now mentioned in the manual page (for version 7.0), so setting this as fixed
In GRASS 7 it is intended to use --overwrite instead of the old -o flag.
Indeed, r.mask --help lacks
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.