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

From Alvaro Herrera
Subject Re: fix in --help output
Date
Msg-id 20080222032023.GG4615@alvh.no-ip.org
Whole thread Raw
In response to Re: fix in --help output  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Responses Re: fix in --help output  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
List 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 by date:

Previous
From: Zdenek Kotala
Date:
Subject: Re: fix in --help output
Next
From: "Jaime Casanova"
Date:
Subject: Re: 2WRS [WIP]