Re: Long options for psql in 7.1.3

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Long options for psql in 7.1.3
Дата
Msg-id 200110041816.f94IG6O05730@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Long options for psql in 7.1.3  (greg@turnstep.com)
Список pgsql-bugs
-- Start of PGP signed section.
> > Here's a lovely message I got from `psql':
> >
> >   g9genarc@eddie:~$ psql -h /var/pgsql --help
> >   psql was compiled without support for long options.
> >   Use --help for help on invocation options.
>
> Looks as though --help and --verbose always work, no
> matter what the setting of HAVE_GETOPT_LONG.
> Is this desired behavior? Seems fairly minor to me,
> but it's confused at least one user. :)
>
> (~ line 110 of src/bin/psql/startup.c)

Intended. I think we hard-coded --help and --version for compatibility.
You will notice it doesn't _display_ the long options in the --help
display unless HAVE_GETOPT_LONG is defined.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

В списке pgsql-bugs по дате отправления:

Предыдущее
От: greg@turnstep.com
Дата:
Сообщение: Re: Long options for psql in 7.1.3
Следующее
От: Tom Lane
Дата:
Сообщение: Re: query plan