[GRASS5] Re: proj bugs

Markus Neteler neteler at itc.it
Mon Jul 7 06:44:10 EDT 2003


On Sun, Jul 06, 2003 at 08:16:47PM +1200, H Bowman wrote:
> > On Thu, Jul 03, 2003 at 11:12:33AM +0100, Paul Kelly wrote:
> > [...]
> > > > d.where:
> > > >
> > > > * program goes into interactive mode automatically
> > > 
> > > Looks like that was a change by Markus:
> > > http://grass.itc.it/pipermail/grass-commit/2003-April/008573.html
> > > The comment doesn't make it clear why it was done?
> > 
> > OK, the change is reverted.
> 
> 
> 'd.where --help' now launches into the program instead of returning to
> the terminal prompt..

Yes, because the G_parser section is not following the standard any more
(due to the requested revert of my change).
Only solutions are:

 - make it standard (revert the revert of changes)
 - hack in --help, help, -h (see e.g. r.mapcalc)

Something like:  
   if (argc > 1 && strcmp(argv[1], "help") == 0)

Change to whatever you prefer.

Markus




More information about the grass-dev mailing list