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

From Daniel Gustafsson
Subject Re: BUG #19042: Option --help not recognized at the end of command line in pg_restore
Date
Msg-id 144DDCC5-8EB1-4AA2-91FB-36916898A86F@yesql.se
Whole thread Raw
In response to BUG #19042: Option --help not recognized at the end of command line in pg_restore  (PG Bug reporting form <noreply@postgresql.org>)
Responses Re: BUG #19042: Option --help not recognized at the end of command line in pg_restore
List pgsql-bugs
> On 3 Sep 2025, at 13:07, PG Bug reporting form <noreply@postgresql.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




pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #19042: Option --help not recognized at the end of command line in pg_restore
Next
From: Matthias Hörmann
Date:
Subject: Re: BUG #19042: Option --help not recognized at the end of command line in pg_restore