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

Daniel Gustafsson <daniel@yesql.se>

From: Daniel Gustafsson <daniel@yesql.se>
To: matthias.hoermann@saltation.com, pgsql-bugs@lists.postgresql.org
Date: 2025-09-03T11:45:15Z
Lists: 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