[GRASS-user] Help

Nikos Alexandris nik at nikosalexandris.net
Tue Jun 6 22:44:13 PDT 2017


Szalona P wrote:
..

>> 2.Does g.region have mandatory parameters? If yes, then specify what ?

Markus Neteler:

>In general no, it can run with a single flag like "-p" for print the
>current region.
>See
>https://grass.osgeo.org/grass72/manuals/g.region.html

If you execute something like `g.region --` or `g.region
--help` in the command line, you'll get a "help" text including a "Usage"
mini-section:

Usage:
 g.region [-dsplectwmn3bgau] [region=name] [raster=name[,name,...]]
   [raster_3d=name] [vector=name[,name,...]] [n=value] [s=value]
   [e=value] [w=value] [t=value] [b=value] [rows=value] [cols=value]
   [res=value] [res3=value] [nsres=value] [ewres=value] [tbres=value]
   [zoom=name] [align=name] [save=name] [--overwrite] [--help]
   [--verbose] [--quiet] [--ui]

Everything inside [square brackets] is optional.  Everything outside, is a requirement.
This applies to all modules.

@All, I wonder if a global --usage flag, for all modules, would make sense. One
example would be `g.region --usage`.

Nikos


[rest deleted]


More information about the grass-user mailing list