Re: fix in --help output - Mailing list pgsql-patches

From Zdenek Kotala
Subject Re: fix in --help output
Date
Msg-id 47BDED06.4000008@sun.com
Whole thread Raw
In response to Re: fix in --help output  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: fix in --help output
List 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 by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: fix in --help output
Next
From: Andrew Dunstan
Date:
Subject: Re: fix in --help output