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: grass-dev@…
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)

comment:1 by neteler, 13 years ago

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.

in reply to:  1 comment:2 by glynn, 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 pvanbosgeo, 12 years ago

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.