From owner-svn-ports-head@FreeBSD.ORG Mon Sep 17 18:03:35 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id 5A098106564A; Mon, 17 Sep 2012 18:03:35 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from opti.dougb.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id DE29A14D8F7; Mon, 17 Sep 2012 18:03:34 +0000 (UTC) Message-ID: <505765F6.2080002@FreeBSD.org> Date: Mon, 17 Sep 2012 11:03:34 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1 MIME-Version: 1.0 To: Alberto Villa References: <201209171714.q8HHEEtY057677@svn.freebsd.org> <50575D0F.6090502@FreeBSD.org> <50576033.2090201@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.4.4 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Chris Rees , svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, ports-committers@freebsd.org, Bryan Drewery Subject: Re: svn commit: r304411 - head X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Sep 2012 18:03:35 -0000 On 09/17/2012 10:54, Alberto Villa wrote: > On Mon, Sep 17, 2012 at 7:38 PM, Doug Barton wrote: >> My point was not, "Teach me the pkg syntax for the -o option." My point >> was, "It's stupid for pkg to use exactly the opposite syntax from the 2 >> most popular ports management tools for the same option flag." > > "old:new" is more intuitive than "-o new old" from portmaster (I guess > portupgrade does the same). It's what people is accustomed to from > tools like `sed`, too. I don't disagree with you, but that's not the point. When I was asked to add the -o option to portmaster it only made sense to copy the syntax that portupgrade users were already familiar with. Sometimes in UI design you have to go with the flow, rather than implementing your own personal idea of "perfect." The best option would have been for pkg to use the same flag, and the same syntax. The second best option would have been to use a different flag (given that apparently pkg's -o option does something different than what portupgrade and portmaster do?). Using the same option flag, but with different syntax, is the worst possible choice. I realize that it's too late for pkg to change, but hopefully by pointing this out someone else can learn something. Doug -- I am only one, but I am one. I cannot do everything, but I can do something. And I will not let what I cannot do interfere with what I can do. -- Edward Everett Hale, (1822 - 1909)