Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yvc10-00053e-HH for pgsql-bugs@arkaria.postgresql.org; Fri, 22 May 2015 01:44:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Yvc10-0003z2-07 for pgsql-bugs@arkaria.postgresql.org; Fri, 22 May 2015 01:44:46 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Yvc0y-0003wb-CW for pgsql-bugs@postgresql.org; Fri, 22 May 2015 01:44:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Yvc0v-0003Xd-Rj for pgsql-bugs@postgresql.org; Fri, 22 May 2015 01:44:43 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t4M1iaSb020214; Thu, 21 May 2015 21:44:36 -0400 From: Tom Lane To: Alvaro Herrera cc: Michael Paquier , "D. S." , pgsql-bugs@postgresql.org Subject: Re: unrecognized option '--help In-reply-to: <20150522013619.GQ5885@postgresql.org> References: <1432193703.4099.3.camel@skuggor.se> <20150522013619.GQ5885@postgresql.org> Comments: In-reply-to Alvaro Herrera message dated "Thu, 21 May 2015 22:36:19 -0300" Date: Thu, 21 May 2015 21:44:36 -0400 Message-ID: <20213.1432259076@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 Alvaro Herrera writes: > Michael Paquier wrote: >> 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. I think the only thing that would do what you wanted would be to recognize *any* argv element matching "--help" as a help request. Maybe that's all right, but I'm a tad worried about the possibility of false positives. Are we so sure that that string could never be a database name, table name, etc? regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs