Re: pgsql: Add new psql help topics, accessible to both --help and \?.

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Add new psql help topics, accessible to both --help and \?.
Date: 2014-09-10 11:15:31
Message-ID: CAB7nPqS5VeedSCxrK=QouokbawgGKLpyc1Q++RRFCa_sjcSVrg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

On Wed, Sep 10, 2014 at 10:04 AM, Andres Freund <andres(at)anarazel(dot)de> wrote:
> The best plan after that seems to be to add optional_argument support to
> getopt_long.c - looks easy enough. Do we need a configure test for
> optional_argument? I don't think so, but I could see somebody arguing
> the other way round.
Adding support for optional_argument in src/port would be the best
solution for long-term purposes. So +1 for it or we'll be limited in
the future as well. Here is for example attached a proof-of-concept
patch that it is not that complicated to add support for optional
arguments... Interestingly, the current implementation dates of 2003
in 939a59f and has not been majorly touched since. The patch has been
tested with MSVC.
--
Michael

Attachment Content-Type Size
20140910getopt_optional.patch text/x-diff 1.3 KB

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Pavel Stehule 2014-09-10 11:36:56 Re: pgsql: Add new psql help topics, accessible to both --help and \?.
Previous Message Pavel Stehule 2014-09-10 09:03:14 Re: pgsql: Add new psql help topics, accessible to both --help and \?.