Re: pg_ctl - tighten command parameter checking

Поиск
Список
Период
Сортировка
От Oliver Elphick
Тема Re: pg_ctl - tighten command parameter checking
Дата
Msg-id 1014501164.13241.4120.camel@linda
обсуждение исходный текст
Ответ на Re: pg_ctl - tighten command parameter checking  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: pg_ctl - tighten command parameter checking  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: pg_ctl - tighten command parameter checking  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_ctl - tighten command parameter checking
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_ctl - tighten command parameter checking