Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Sep 2010 22:29:03 -0600 (MDT)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        arundel@freebsd.org
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: adding a new lib for more advanced argument parsing
Message-ID:  <20100926.222903.886429907165706116.imp@bsdimp.com>
In-Reply-To: <20100927012936.GA32352@freebsd.org>
References:  <20100927012936.GA32352@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <20100927012936.GA32352@freebsd.org>
            Alexander Best <arundel@FreeBSD.org> writes:
: hi there,
: 
: looking at applications such as geom (g_*), camcontrol, etc. makes one realise
: that getopt(3) is clearly not suitable for handling such complex options.
: camcontrol.c even contains a whole paragraph about why getopt(3) is considered
: not appropriate to handle camcontrol's argument parsing requirements (that was
: 1998!).
: 
: why not do a vendor import of popt 1.16 e.g.? are there license restrictions?
: or maybe some other lib...

popt has an X11 license, which isn't a big deal.  However, it depends
on gettext, which is pure GPL.

Also, POSIX has a lot to say about command line parsing, and popt
doesn't quite match what POSIX has to say...

Warner



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