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 ...
Steve Kargl
sgk at troutmask.apl.washington.edu
Sat May 31 18:50:40 UTC 2008
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
More information about the cvs-src
mailing list