Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j3udz-0003vD-6M for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Feb 2020 04:37:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j3udx-00039A-SR for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Feb 2020 04:37:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j3udx-00038Z-K7 for pgsql-bugs@lists.postgresql.org; Tue, 18 Feb 2020 04:37:57 +0000 Received: from [66.111.4.25] (helo=out1-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j3udv-0006WZ-2g for pgsql-bugs@postgresql.org; Tue, 18 Feb 2020 04:37:57 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 9FB4521FFC; Mon, 17 Feb 2020 23:37:43 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 17 Feb 2020 23:37:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=WrpX9KB8TUU6iyPcyiaiVczSi0W rgy+EkzVrbkcReBs=; b=ROERXq0zHCvLK2Lkk8oiVNptV+jHzxcXs/VQ0Fc+4M8 WKAZGjFOixQtyaIKak6bwXMyo7cM+PbUYx6c20dpcVMwdn2r+6GBxF/ftj8KZ0iy N6X74BRtWXvOALuOZfSQW/GrI4JuWRhewXMXY+Tz27dOVXoCKPBzZYQn/TjQOtfX rAtZm+uUaHQyuq8QBsd0i0i6tCoj4Ik41+bzugsdPZ6zvhvsC2P193eDAZ/bAmqH 0Dv+M0YC5c0EddpE2fR25w8gx2IWMZOwLxJP6NROMNt7z6eN/wMswZScAEIExa5M IzvgqaOCVTXAEjh1ly+4kXJlXtd5KiYfxj/6lP10aLw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=WrpX9K B8TUU6iyPcyiaiVczSi0Wrgy+EkzVrbkcReBs=; b=so//r6OSCAnkMeT0YaAj0/ CXr6IzA1JUr60NqsMbawoJc3jIocDS2x23VgbBkWEs0ZUuYZttP0LYJwjl9J142p ozEgvbt7Yav2E3mqu3Quzp6dcyNcN0RsqefiVylE0Anp/AiTpK7vGaNGYkiMeA2v Em54o1AFoxyy/0jGWXq2Ix/u4b9NLtCpgqUdN5Evvfg2ao2C6HZ1l4Ux2oPaHARn bQgTb7+xztWvZIGDQo0nDZXAiXBg13YICeSxs+XzG8YB0eYA1t032v16DV8RWY7E O4qHvwdKsReNPTCEJT1CxeinrSdN5/vKEUiUBR9cfV6z05l+xdIy7Jvfz6rKsAKA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrjeejgdejvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecukfhppeduuddurddutddvrddukedtrddukeehnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesph grqhhuihgvrhdrgiihii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 67CD6328005A; Mon, 17 Feb 2020 23:37:41 -0500 (EST) Date: Tue, 18 Feb 2020 13:37:37 +0900 From: Michael Paquier To: Tom Lane Cc: "David G. Johnston" , Andre Lucas , "pgsql-bugs@postgresql.org" Subject: Re: PSQL Help Message-ID: <20200218043737.GG4176@paquier.xyz> References: <20200217203834.2D6937A0211@proxy.email-ssl.com.br> <32736.1581997156@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tctmm6wHVGT/P6vA" Content-Disposition: inline In-Reply-To: <32736.1581997156@sss.pgh.pa.us> X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.25 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --tctmm6wHVGT/P6vA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Feb 17, 2020 at 10:39:16PM -0500, Tom Lane wrote: > FWIW, Andres' example *will* work on some platforms, because glibc's > getopt_long() takes it upon itself to rearrange the arguments. > But it doesn't work everywhere, which is why we only document/recommend > the stricter argument order. This is actually the case of our fallback implementation used for example on Windows with MSVC builds. This led to fixes in our regression tests like c67a86f, so we avoid this style as much as possible on portability's ground. -- Michael --tctmm6wHVGT/P6vA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl5LahEACgkQnvQgOdby QH3OQQ/8Cjw7VfN7BAiiYQ0Wz59YpPhdq4Ggi55wQrsRpuTfhwgh7nf+Dnr4NYJ8 ZCnXgDC93v7jeleprAyELiRwb8R5wDM+ilBxEAiVdH8UL1rKZ1cdb5JzBTY5ngSf oYwEfz7sNJC2ndiGJph//yYyoKOX+B4d/fZtebzPdo5gilfAuOP9MiuHtVO8MGdp bXXvkByu25TNHNf8bm6H14X0oqKTAjMevljTkdPtfHciO2QglszVGQX+RxnY4WiM FxnFSfeENLE4kWq+Ub/HM1LZD3odUkssZRVYP++XhBT6hB0inLhXaCQyE5APhm5K QykksvBL0WTH1IvgsKOnmuL3CyMT91p05gU5gpQWeZv4Kew6QTn9qHx2YaGCA4k8 a5JmSFDJjXVJav+pxBocgWvhORXgqgZZpFJXvM9i9eHNGVPVNfgvOtLi/eO52pnX 7eT5P2UI+UT29ZXsEdZMPqVnExcHrYbB2+mfOou5wgNuwud5yvwH0yO1Om0hc9gh fWMHsVDDvRKWvuyudASR+2vSLfWYaE1pXykRhEURC4v6KrDUXglmKYq4oFsK1+yT amUSdler/LNprz+1y13uEkRFCoXrSw9mofi34Hi3fdaYfqIAvqm/kCJ6NGoH5KV8 9mskMLiKB4C4eqFLyS8U0wUwWVoAxNV0YNMWF4679vEMJTm7f0A= =Mz6r -----END PGP SIGNATURE----- --tctmm6wHVGT/P6vA--