raster MASKs; was [GRASS-dev] interferring ovewrite flags
Glynn Clements
glynn at gclements.plus.com
Tue Oct 10 08:12:09 EDT 2006
Michael Barton wrote:
> The issue is that you can't get a check box for the --o flag out of the
> parser. You need to specify a flag with a single letter AFAIK. You have to
> specify it as "o" in the script header that creates the GUI, which makes it
> come out as -o if you run the script from the command line. I want users to
> have a check box to overwrite or not overwrite the MASK.
That's a problem with the GUI, not the parser.
As every module supports --o, the GUI should unconditionally add a
checkbox for overwrite. It shouldn't expect the parser to tell it to
do so.
The parser can't report --o etc as normal flags, because they aren't
normal flags; e.g. you can't combine them ("-x -y -z" can be
abbreviated to "-xyz", but that doesn't work with the "--" flags).
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list