From owner-cvs-src@FreeBSD.ORG Sat May 31 18:50:40 2008 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0BBE91065670 for ; Sat, 31 May 2008 18:50:40 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.freebsd.org (Postfix) with ESMTP id C608F8FC16 for ; Sat, 31 May 2008 18:50:39 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.2/8.14.2) with ESMTP id m4VIoTj7095687; Sat, 31 May 2008 11:50:29 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.2/8.14.2/Submit) id m4VIoTSS095686; Sat, 31 May 2008 11:50:29 -0700 (PDT) (envelope-from sgk) Date: Sat, 31 May 2008 11:50:29 -0700 From: Steve Kargl To: Joerg Sonnenberger Message-ID: <20080531185029.GA95548@troutmask.apl.washington.edu> References: <200805301426.m4UEQ92d025434@repoman.freebsd.org> <48405C4B.3050603@FreeBSD.org> <20080531180429.GA2240@britannica.bec.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080531180429.GA2240@britannica.bec.de> User-Agent: Mutt/1.4.2.3i Cc: cvs-src@freebsd.org Subject: Re: cvs commit: src/usr.sbin/pkg_install/add main.c pkg_add.1 src/usr.sbin/pkg_install/create main.c pkg_create.1 src/usr.sbin/pkg_install/delete main.c pkg_delete.1 src/usr.sbin/pkg_install/info main.c pkg_info.1 ... X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 May 2008 18:50:40 -0000 On Sat, May 31, 2008 at 08:04:29PM +0200, Joerg Sonnenberger wrote: > On Fri, May 30, 2008 at 12:58:03PM -0700, Maxim Sobolev wrote: > > I am curious what is our policy on using long options in the base system > > (if any)? I believe that pkg_install is the first non-contributed base > > system utility to actually widely use it. > > Consider what happens when you want to split -f into different options > that are more selective. Long options are more intuitive than random > letters for that purpose. > Won't one simply use optarg? In fact, getopt(3) shows an optarg example using -f. I admit that I had the same thoughts as Maxim. Why is a FreeBSD utility using long options? -- Steve