Re: fix in --help output

Поиск
Список
Период
Сортировка
От Zdenek Kotala
Тема Re: fix in --help output
Дата
Msg-id 47BDED06.4000008@sun.com
обсуждение исходный текст
Ответ на Re: fix in --help output  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: fix in --help output  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-patches
Alvaro Herrera napsal(a):
> Zdenek Kotala wrote:
>
>> It maybe work on linux but I think it is not portable solution.
>
> What we should do is avoid using Solaris' getopt_long and instead use
> the copy we have in src/port/.
>

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.

        Zdenek

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: fix in --help output
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: fix in --help output