[GRASS-dev] [bug #4368] (grass) g.parser: pass through --o

Jachym Cepicky jachym.cepicky at centrum.cz
Sat May 13 18:42:06 EDT 2006


ok, thank you for explanation.

all the best

jachym

On Sat, May 13, 2006 at 10:31:09AM -0700, Cedric Shock wrote:
> Jachym,
> 
> The --o flag has been in grass for a long time. Things that start -- in grass 
> are options to the parser, things that start - are flags that are parsed by 
> the parser for the module. --o tells the parser not to check that to make 
> sure elements in "new" gisprompts don't exist.
> 
> The following are also parser options, all of these options must be the first 
> argument:
> --help
> show usage and exit. Also -help and help work for ease.
> 
> --interface-description
> Print out xml description of command line interface and exit
> 
> --html-description
> Print out html usage help for command to be integrated in manual pages.
> 
> --tcltk
> Print out tcl/tk source code to be evaluated after sourcing gui.tcl to make a 
> user interface. This is for user interfaces like d.m and gis.m.
> 
> --ui
> Force the gui user interface to run. This can be used by itself or in 
> combination with options and flags to preload those options and flags into 
> the ui. This could be changed so that it doesn't need to be the first 
> argument, since it doesn't preempt parsing.
> 
> --o and --overwrite
> These don't need to be in the first argument. They override existing map check 
> for this command only.
> 
> Note that overwrite can also be set by g.gisenv so that it happens 
> automatically for all commands. Some users (at least me) prefer to not have 
> maps automatically overwritten, but for it to be easy to do for a single 
> command.
> 
> The only recent change was adding --o to the help. It was added to module help 
> because it is specifically useful for modules that employ a new gisprompt.
> 
> 
> --Cedric

-- 
Jachym Cepicky
e-mail: jachym.cepicky at centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
-----------------------------------------   
OFFICE:                                     
GDF-Hannover
Mengendamm 16d
30177 Hannover
Germany
e-mail: cepicky at gdf-hannover.de
URL:    http://gdf-hannover.de
Tel.:   +49 511-39088507
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20060514/a3a3ea82/attachment.bin


More information about the grass-dev mailing list