[GRASS-dev] Plan to build Package to use GRASS from R

Rainer M Krug r.m.krug at gmail.com
Wed Jul 2 10:25:56 EDT 2008


On Wed, Jul 2, 2008 at 4:22 PM, Martin Landa <landa.martin at gmail.com> wrote:
> Hi,
>
> 2008/7/2 Rainer M Krug <r.m.krug at gmail.com>:
>> I finally started working on the implementation of grass commands from
>> R and most of the translation from the the output from
>> --interface-description is working. I just have one question at the
>> moment: some flags require "--" and others "-" and I could not fiind
>> any indication in the
>> --interface-description output which one uses which.
>
> I guess, basically one-letter flags use '-' othewise '--', e.g.
>
>       <flag name="g">
>                <label>
>                        Shell script style, currently only for report
>                </label>
>                <description>
>                        Format: layer type count min max
>                </description>
>        </flag>
>        <flag name="overwrite">
>                <description>
>                        Allow output files to overwrite existing files
>                </description>
>        </flag>
>
> -> '-g' / '--overwrite' (or '--o')

I thought the same, but look at r.buffer --help:


Flags:
  -z   Ignore zero (0) data cells instead of NULL cells
  -q   Run quietly
 --o   Allow output files to overwrite existing files
 --v   Verbose module output
 --q   Quiet module output

>
> Martin
>
> --
> Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *
>



-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Plant Conservation Unit
Department of Botany
University of Cape Town
Rondebosch 7701
South Africa


More information about the grass-dev mailing list