Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1utt40-00FWxq-CQ for pgsql-bugs@arkaria.postgresql.org; Wed, 03 Sep 2025 19:22:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1utt3y-00B9Un-0x for pgsql-bugs@arkaria.postgresql.org; Wed, 03 Sep 2025 19:22:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1utt3x-00B9Uf-Ot for pgsql-bugs@lists.postgresql.org; Wed, 03 Sep 2025 19:22:34 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1utt3u-000P2F-2X for pgsql-bugs@lists.postgresql.org; Wed, 03 Sep 2025 19:22:33 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 583JMULC842689; Wed, 3 Sep 2025 15:22:30 -0400 From: Tom Lane To: Daniel Gustafsson cc: =?utf-8?Q?Matthias_H=C3=B6rmann?= , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #19042: Option --help not recognized at the end of command line in pg_restore In-reply-to: <365ACB7B-B731-4F66-B69B-1765194A5B58@yesql.se> References: <19042-347869ae37c993f4@postgresql.org> <144DDCC5-8EB1-4AA2-91FB-36916898A86F@yesql.se> <804476.1756911473@sss.pgh.pa.us> <365ACB7B-B731-4F66-B69B-1765194A5B58@yesql.se> Comments: In-reply-to Daniel Gustafsson message dated "Wed, 03 Sep 2025 21:09:00 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <842687.1756927350.1@sss.pgh.pa.us> Date: Wed, 03 Sep 2025 15:22:30 -0400 Message-ID: <842688.1756927350@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Daniel Gustafsson writes: > On 3 Sep 2025, at 16:57, Tom Lane wrote: >> I'd be in favor of recognizing >> --help (though probably not -?) in any argument position. > Any particular reason to restrict -? from this? I'm not set on that either way. It just seems like --help is quite unambiguous and unlikely to be a typo, whereas I'm less sure about -?. I won't stand in the way of a consensus to do this for both. regards, tom lane