[pacman-dev] [PATCH] makepkg : switch from getopt to getopts builtin
Xavier
shiningxc at gmail.com
Tue Jun 3 04:49:43 EDT 2008
On Mon, Jun 2, 2008 at 6:29 PM, Dan McGee <dpmcgee at gmail.com> wrote:
>
> I won't graciously accept it! :)
>
> I'd much rather keep longopts, so I think a parse_options() function
> that uses getopts in combo with some manual longopt parsing is our
> best bet.
>
Ok so let's just revert to the old way:
http://www.archlinux.org/pipermail/pacman-dev/2008-May/011858.html
You can see the loop was approximately twice longer because longopts
and shortopts are handled separately, but it might be the best
compromise.
More information about the pacman-dev
mailing list