Date: Tue, 03 Jun 2008 13:33:37 -0400 From: Coleman Kane <cokane@FreeBSD.org> To: remko@elvandar.org Cc: Maxim Sobolev <sobomax@freebsd.org>, src-committers@freebsd.org, cvs-all@freebsd.org, Florent Thoumie <flz@FreeBSD.org>, 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 ... Message-ID: <1212514417.15220.30.camel@localhost> In-Reply-To: <33dfad267556d52723e95461f5eb7c34.squirrel@galain.elvandar.org> References: <200805301426.m4UEQ92d025434@repoman.freebsd.org> <48405C4B.3050603@FreeBSD.org> <1212179252.1967.1.camel@localhost> <a01628140806030818te29e2fet287d59f5ceedfc9c@mail.gmail.com> <33dfad267556d52723e95461f5eb7c34.squirrel@galain.elvandar.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-wKoXzrYZ1Semk5eybKnq Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2008-06-03 at 18:45 +0200, Remko Lodder wrote: > On Tue, June 3, 2008 5:18 pm, Florent Thoumie wrote: > > On Fri, May 30, 2008 at 9:27 PM, Coleman Kane <cokane@freebsd.org> wrot= e: > >> 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 > >>> (if any)? I believe that pkg_install is the first non-contributed bas= e > >>> system utility to actually widely use it. For some reason I've got > >>> impression that use of getopt_long is considered "the Linux/GNU way", > >>> this API provided for compatibility purposes and its use in base syst= em > >>> is discouraged. Quick grep through /use/src seemingly supports that. > >>> > >>> Can someone confirm/reject? > >> > >> 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 option= s > >> when I am doing the administration myself. > > > > I'm not aware of such policy. > > > > I think they're useful because as far as pkg_install is concerned, we > > are using single-char options that are hard to match to the action > > it's doing. Here are a couple examples: > > > > - pkg_create -h doesn't call usage() because it's already taken. > > - it's easy to confuse pkg_info -o and pkg_info -O. > > > > I'll back it out if general consensus is that long options should be > > avoided. > > > > -- > > Florent Thoumie > > flz@FreeBSD.org > > FreeBSD Committer > > >=20 > I like the change (long opts). >=20 > Cheers, > REmko >=20 like++; --=20 Coleman Kane --=-wKoXzrYZ1Semk5eybKnq 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) iEYEABECAAYFAkhFgG8ACgkQcMSxQcXat5dtXwCbBLOtXqKqRz7I2rrMKBW06ZDI 9P0AnR4RsHOai2cMMXcv1nd8J8d+LIjm =nXqN -----END PGP SIGNATURE----- --=-wKoXzrYZ1Semk5eybKnq--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1212514417.15220.30.camel>