Re: fix in --help output

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: fix in --help output
Дата
Msg-id 20080222032023.GG4615@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: fix in --help output  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Ответы Re: fix in --help output  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Список pgsql-patches
Zdenek Kotala wrote:

> If I looked correctly there is no getopt_long. There is only getopt with
> - as a option. See PostmasterMain:
>
>
>    while ((opt = getopt(argc, argv,
> "A:B:c:D:d:EeFf:h:ijk:lN:nOo:Pp:r:S:sTt:W:-:")) != -1)
>
> If I understand correctly the POSIX standard "-" should not used in a
> option list.

Hmm, right.  Our current parsing of --long-opts is quite a hack, it
seems :-(  Having to list all GUC options in the getopt_long array would
be a mess.  Any other ideas?

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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

Предыдущее
От: Zdenek Kotala
Дата:
Сообщение: Re: fix in --help output
Следующее
От: "Jaime Casanova"
Дата:
Сообщение: Re: 2WRS [WIP]