Re: pg_ctl - tighten command parameter checking - Mailing list pgsql-hackers

From Oliver Elphick
Subject Re: pg_ctl - tighten command parameter checking
Date
Msg-id 1014501164.13241.4120.camel@linda
Whole thread Raw
In response to Re: pg_ctl - tighten command parameter checking  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: pg_ctl - tighten command parameter checking
Re: pg_ctl - tighten command parameter checking
List pgsql-hackers
On Sat, 2002-02-23 at 21:31, Bruce Momjian wrote:
> 
> Oliver, I am going to reject this.  We give them the syntax for the
> params.  I don't see a need to check for leading dash to see if they
> forgot a param.  I would like to see a more general solution that uses
> getopt or something more robust, but moving all that checking to each
> param just seems like a waste.

I would certainly prefer to use getopt, but is that portable?  Peter
wants me to use case..esac instead of cut; I would have thought getopt
was a lot less portable.

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
    "All scripture is given by inspiration of God, and is      profitable for doctrine, for reproof, for correction,
 for instruction in righteousness; That the man of God      may be perfect, thoroughly furnished unto all good
works."        II Timothy 3:16,17 
 



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: pg_ctl - tighten command parameter checking
Next
From: Bruce Momjian
Date:
Subject: Re: pg_ctl - tighten command parameter checking