Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yvc0Z-00052a-Hv for pgsql-bugs@arkaria.postgresql.org; Fri, 22 May 2015 01:44:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Yvc0Y-0003aF-Mg for pgsql-bugs@arkaria.postgresql.org; Fri, 22 May 2015 01:44:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Yvc0X-0003a6-Ov for pgsql-bugs@postgresql.org; Fri, 22 May 2015 01:44:17 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Yvc0Q-0002eb-AH for pgsql-bugs@postgresql.org; Fri, 22 May 2015 01:44:17 +0000 Received: from intern.anarazel.de (unknown [184.23.178.130]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id A1B8D860001; Fri, 22 May 2015 03:44:09 +0200 (CEST) Date: Fri, 22 May 2015 03:44:07 +0200 From: Andres Freund To: Alvaro Herrera Cc: Michael Paquier , "D. S." , pgsql-bugs@postgresql.org Subject: Re: unrecognized option '--help Message-ID: <20150522014407.GE2028@alap3.anarazel.de> References: <1432193703.4099.3.camel@skuggor.se> <20150522013619.GQ5885@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150522013619.GQ5885@postgresql.org> X-Pg-Spam-Score: -4.2 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 2015-05-21 22:36:19 -0300, Alvaro Herrera wrote: > Michael Paquier wrote: > > On Thu, May 21, 2015 at 4:35 PM, D. S. wrote: > > > Explanation: > > > If anything is ahead of --help, "--help" is then an unrecognized > > > option. > > > > It is wanted this way for all the utilities of src/bin. See > > handle_help_version_opts() in src/bin/scripts/common.c for your case. > > Is it really wanted? I find it very annoying and wish it didn't do > that. If I understand correctly it's a relic from the time when we couldn't rely on long options being supported. Since that's long past (we use our own getopt in that case), we imo should just rip out all that --help/-? specific code. I too find it *very* annoying. Andres -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs