Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Ye2Gw-0001EZ-0i for pgsql-bugs@arkaria.postgresql.org; Fri, 03 Apr 2015 14:08:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Ye2Gv-0004M1-Bl for pgsql-bugs@arkaria.postgresql.org; Fri, 03 Apr 2015 14:08:33 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Ye2Gu-0004Lu-Bz for pgsql-bugs@postgresql.org; Fri, 03 Apr 2015 14:08:32 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Ye2Gr-00039l-Gk for pgsql-bugs@postgresql.org; Fri, 03 Apr 2015 14:08:30 +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 t33E8RIA028932; Fri, 3 Apr 2015 10:08:27 -0400 From: Tom Lane To: Michael Paquier cc: pgsql-bugs@postgresql.org Subject: Re: src/port/getopt_long.c lossy with arguments having no option characters In-reply-to: References: Comments: In-reply-to Michael Paquier message dated "Thu, 02 Apr 2015 19:44:40 -0700" Date: Fri, 03 Apr 2015 10:08:27 -0400 Message-ID: <28931.1428070107@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 Michael Paquier writes: > The implementation of getopt_long in src/port has some limitations, > for example such commands do not work but they should: No, those should not work. You're too used to versions that don't insist on switches-before-non-switch-arguments. Such behavior is an extension that is not standard, is not documented in any Postgres documentation, and tends to have bad corner-case behaviors. I don't feel a need to make our implementation replicate that. 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