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

From PG Bug reporting form
Subject BUG #19042: Option --help not recognized at the end of command line in pg_restore
Date
Msg-id 19042-347869ae37c993f4@postgresql.org
Whole thread Raw
Responses Re: BUG #19042: Option --help not recognized at the end of command line in pg_restore
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      19042
Logged by:          Matthias Hörmann
Email address:      matthias.hoermann@saltation.com
PostgreSQL version: 17.6
Operating system:   Debian bookworm
Description:

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.

```
# pg_restore --version
pg_restore (PostgreSQL) 17.6 (Debian 17.6-1.pgdg12+1)
# sudo -u postgres pg_restore -f /tmp/redacted_20250903_130108.pg_dump
--help
/usr/lib/postgresql/17/bin/pg_restore: unrecognized option '--help'
pg_restore: hint: Try "pg_restore --help" for more information.
```


pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #19041: Logical replication locks wal processing
Next
From: Daniel Gustafsson
Date:
Subject: Re: BUG #19042: Option --help not recognized at the end of command line in pg_restore