Re: BUG #19042: Option --help not recognized at the end of command line in pg_restore

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: Peter Eisentraut <peter(at)eisentraut(dot)org>
Cc: Andres Freund <andres(at)anarazel(dot)de>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Matthias Hörmann <matthias(dot)hoermann(at)saltation(dot)com>, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19042: Option --help not recognized at the end of command line in pg_restore
Date: 2025-09-10 09:24:36
Message-ID: C3707C55-9C54-47FB-90FB-E47A36F7D721@yesql.se
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

> On 10 Sep 2025, at 07:26, Peter Eisentraut <peter(at)eisentraut(dot)org> wrote:
>
> On 03.09.25 21:34, Andres Freund wrote:
>> So +many for recognizing --help (and I'd say -?) everywhere, not just as the
>> first argument. I never understood why we don't do that.
>
> I think in the olden days we didn't have universal getopt_long() support, so it was hardcoded. I don't see a problem with changing it.

That's probably an accurate description. I am writing up a patch to move it
into long option processing to see what it would look like, will share soon.

--
Daniel Gustafsson

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tender Wang 2025-09-10 11:36:52 Re: BUG #19046: Incorrect result when using json_array() with column reference in subquery combined with RIGHT JOIN
Previous Message PG Bug reporting form 2025-09-10 07:14:35 BUG #19046: Incorrect result when using json_array() with column reference in subquery combined with RIGHT JOIN