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

Markus Metz markus.metz.giswork at googlemail.com
Wed May 25 07:37:27 EDT 2011


On Wed, May 25, 2011 at 1:31 PM, Glynn Clements
<glynn at gclements.plus.com> wrote:
>
> 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.

Useful for e.g. g.copy rast=rast,myrast --o on the command line (in
the wxGUI there is no overwrite option for g.copy)


More information about the grass-dev mailing list