From owner-cvs-all@FreeBSD.ORG Fri May 30 20:43:46 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F29C8106564A; Fri, 30 May 2008 20:43:45 +0000 (UTC) (envelope-from cokane@FreeBSD.org) Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com [71.74.56.125]) by mx1.freebsd.org (Postfix) with ESMTP id 7187C8FC12; Fri, 30 May 2008 20:43:45 +0000 (UTC) (envelope-from cokane@FreeBSD.org) Received: from orion.intree.net ([70.62.16.218]) by hrndva-omta05.mail.rr.com with ESMTP id <20080530202839.MNKZ12416.hrndva-omta05.mail.rr.com@orion.intree.net>; Fri, 30 May 2008 20:28:39 +0000 Received: from mail.cokane.org (unknown [172.31.0.6]) by orion.intree.net (Postfix) with ESMTP id 5101B361C0A8; Fri, 30 May 2008 16:28:39 -0400 (EDT) Received: by mail.cokane.org (Postfix, from userid 103) id F170825AD3D; Fri, 30 May 2008 16:28:38 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.1.8-gr1 (2007-02-13) on discordia X-Spam-Level: X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, SUBJ_HAS_SPACES autolearn=ham version=3.1.8-gr1 Received: from [172.20.1.3] (erwin.int.cokane.org [172.20.1.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cokane.org (Postfix) with ESMTP id 8870016B55B; Fri, 30 May 2008 16:28:24 -0400 (EDT) From: Coleman Kane To: Maxim Sobolev In-Reply-To: <48405C4B.3050603@FreeBSD.org> References: <200805301426.m4UEQ92d025434@repoman.freebsd.org> <48405C4B.3050603@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-TWbWsYV713LEX+16nd2o" Organization: FreeBSD Project Date: Fri, 30 May 2008 16:27:32 -0400 Message-Id: <1212179252.1967.1.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1.1 FreeBSD GNOME Team Port Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org, Florent Thoumie 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-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 May 2008 20:43:46 -0000 --=-TWbWsYV713LEX+16nd2o Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2008-05-30 at 12:58 -0700, Maxim Sobolev wrote: > I am curious what is our policy on using long options in the base system=20 > (if any)? I believe that pkg_install is the first non-contributed base=20 > system utility to actually widely use it. For some reason I've got=20 > impression that use of getopt_long is considered "the Linux/GNU way",=20 > this API provided for compatibility purposes and its use in base system=20 > is discouraged. Quick grep through /use/src seemingly supports that. >=20 > Can someone confirm/reject? >=20 > Florent Thoumie wrote: > > flz 2008-05-30 14:26:09 UTC > >=20 > > FreeBSD src repository > >=20 > > Modified files: > > usr.sbin/pkg_install/add main.c pkg_add.1=20 > > usr.sbin/pkg_install/create main.c pkg_create.1=20 > > usr.sbin/pkg_install/delete main.c pkg_delete.1=20 > > usr.sbin/pkg_install/info main.c pkg_info.1=20 > > usr.sbin/pkg_install/lib lib.h=20 > > usr.sbin/pkg_install/updating main.c pkg_updating.1=20 > > usr.sbin/pkg_install/version main.c pkg_version.1=20 > > Log: > > - Add long options to pkg_install. > > - Remove check for '-?' as it's not listed in authorized options. > > - Bump PKG_INSTALL_VERSION to 20080530. >=20 > -Maxim >=20 I am not sure about policy, however I do appreciate the long options sometimes. Primarily, I think they are useful (in a self-documenting way) for use in shell scripts. I tend to prefer the single-char options when I am doing the administration myself. --=20 Coleman Kane --=-TWbWsYV713LEX+16nd2o Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAkhAYy8ACgkQcMSxQcXat5cZSACeL4398bDr9L3sOYP6gHuFukuF L4sAn0nmBa6V1N5RQd1CtRWgkDMA3RB1 =gwdo -----END PGP SIGNATURE----- --=-TWbWsYV713LEX+16nd2o--