Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 May 2008 16:27:32 -0400
From:      Coleman Kane <cokane@FreeBSD.org>
To:        Maxim Sobolev <sobomax@FreeBSD.org>
Cc:        cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org, Florent Thoumie <flz@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:  <1212179252.1967.1.camel@localhost>
In-Reply-To: <48405C4B.3050603@FreeBSD.org>
References:  <200805301426.m4UEQ92d025434@repoman.freebsd.org> <48405C4B.3050603@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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 base 
> 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 system 
> is discouraged. Quick grep through /use/src seemingly supports that.
> 
> Can someone confirm/reject?
> 
> Florent Thoumie wrote:
> > flz         2008-05-30 14:26:09 UTC
> > 
> >   FreeBSD src repository
> > 
> >   Modified files:
> >     usr.sbin/pkg_install/add main.c pkg_add.1 
> >     usr.sbin/pkg_install/create main.c pkg_create.1 
> >     usr.sbin/pkg_install/delete main.c pkg_delete.1 
> >     usr.sbin/pkg_install/info main.c pkg_info.1 
> >     usr.sbin/pkg_install/lib lib.h 
> >     usr.sbin/pkg_install/updating main.c pkg_updating.1 
> >     usr.sbin/pkg_install/version main.c pkg_version.1 
> >   Log:
> >   - Add long options to pkg_install.
> >   - Remove check for '-?' as it's not listed in authorized options.
> >   - Bump PKG_INSTALL_VERSION to 20080530.
> 
> -Maxim
> 

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.

-- 
Coleman Kane

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEABECAAYFAkhAYy8ACgkQcMSxQcXat5cZSACeL4398bDr9L3sOYP6gHuFukuF
L4sAn0nmBa6V1N5RQd1CtRWgkDMA3RB1
=gwdo
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1212179252.1967.1.camel>