Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yve7S-0001tH-Fg for pgsql-bugs@arkaria.postgresql.org; Fri, 22 May 2015 03:59:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Yve7R-0005Pz-Qi for pgsql-bugs@arkaria.postgresql.org; Fri, 22 May 2015 03:59:33 +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 1Yve7Q-0005Ps-Or for pgsql-bugs@postgresql.org; Fri, 22 May 2015 03:59:32 +0000 Received: from mail-qc0-f171.google.com ([209.85.216.171]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Yve7N-000691-TZ for pgsql-bugs@postgresql.org; Fri, 22 May 2015 03:59:31 +0000 Received: by qctt3 with SMTP id t3so3247391qct.1 for ; Thu, 21 May 2015 20:59:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=SP9vIlX19U5deyCMis7vclpj6XyQsBftMzxoeECe3Ow=; b=Jg1kJ7JiAgVIs4lbbcwz3KIiutiyqFd7E2A9P9w0foseFEEWGmpkuYKWUUN5QDSIL8 jixknTiJovcYXPBhfYGxYTUayfANT/smtB7Bx2r/MXzBHhGbm89VaO2jC+IjUJyUt6Kp L8OtW9TiV3IJAo8KBk8m4BV2WSgjSGvd8F7dAsHIs7/a94QSodgJITFQ+ZZB4j9PHg97 1MJtMITX3HyDDcA1QBzXKioQkCzAEuQVzY4jx367QEX7rFDpPEd4QEvet4fYiRidF1B0 ecYc8BIp5Eoa68VOczHE65Yx5/MDnGI9CbcTn20AEqnHFWLOvvvlavifL1bv/L8WXP0H pDEg== X-Gm-Message-State: ALoCoQkfFRSsRcR+zkxNXHIfAAHULHk03J6HabKtRgNZUNmvrURvM6ZSxTI+0DXvfmSEq+f0lI0s X-Received: by 10.140.49.11 with SMTP id p11mr8278383qga.60.1432267168669; Thu, 21 May 2015 20:59:28 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([186.37.77.72]) by mx.google.com with ESMTPSA id x142sm599919qkx.28.2015.05.21.20.59.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 May 2015 20:59:28 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 5903547E; Fri, 22 May 2015 00:59:21 -0300 (CLT) Date: Fri, 22 May 2015 00:59:21 -0300 From: Alvaro Herrera To: Tom Lane Cc: Andres Freund , Michael Paquier , "D. S." , pgsql-bugs@postgresql.org Subject: Re: unrecognized option '--help Message-ID: <20150522035921.GT5885@postgresql.org> References: <1432193703.4099.3.camel@skuggor.se> <20150522013619.GQ5885@postgresql.org> <20213.1432259076@sss.pgh.pa.us> <20150522015006.GF2028@alap3.anarazel.de> <20675.1432259996@sss.pgh.pa.us> <20150522021319.GG2028@alap3.anarazel.de> <21331.1432261497@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <21331.1432261497@sss.pgh.pa.us> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.6 (--) 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 Tom Lane wrote: > Andres Freund writes: > > I don't think it really is the symptom complained about here. Right now > > "vacuumdb dbname --verbose" works (i.e. recognizes verbose as an > > option), whereas "vacuumdb dbname --help" doesn't. The latter is what's > > complained about here. And the reason for that is that > > --help/-?/--version/-v aren't part of the getopt_long() call. > > Meh. I don't particularly object to including --help in the switch set > recognized in getopt_long ... but I doubt that that will actually fix > Alvaro's scenario. Nah, I think that's okay for my usage. > Note that we should not rip out the existing code, because part of the > reason for that is that it acts before any of the other stuff that runs > before getopt parsing starts, eg the postmaster's refusal to run if you're > root. No objection to that, though I wonder (without looking at the code) if for binaries other than postmaster this is really worthwhile. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs