[GRASS-dev] Re: doubt with single/double dashed flags from interface description

Glynn Clements glynn at gclements.plus.com
Wed May 25 07:31:39 EDT 2011


Markus Metz wrote:

> the double-dash options are generic options available for every module
> and not defined by the module: --overwrite, --verbose, --quiet.

> IOW, you could ignore these three double-dash options when handling
> flags of interface descriptions because they are available for every
> module and not module-specific

One caveat: --overwrite is only listed as an available flag for
modules which have at least one option with "new" in the gisprompt
field or which explicitly set the "overwrite" field in the GModule
structure (there's no equivalent for scripts).

All modules accept --overwrite, regardless of whether it's listed. If
there are no "new" options, the parser doesn't perform overwrite
checks, but it will still set GRASS_OVERWRITE=1.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list