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: 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-03 11:45:15
Message-ID: 144DDCC5-8EB1-4AA2-91FB-36916898A86F@yesql.se
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

> On 3 Sep 2025, at 13:07, PG Bug reporting form <noreply(at)postgresql(dot)org> wrote:

> When calling pg_restore trying to use --help at the end to see which other
> options I might want to specify tells me that --help is an unrecognized
> option and I am supposed to run pg_restore --help for more information.

This is the intended behaviour, --help (and --version) is parsed specially and
must be the first parameter. We do this for all command line utilities.

--
Daniel Gustafsson

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Matthias Hörmann 2025-09-03 11:48:38 Re: BUG #19042: Option --help not recognized at the end of command line in pg_restore
Previous Message PG Bug reporting form 2025-09-03 11:07:24 BUG #19042: Option --help not recognized at the end of command line in pg_restore