[pacman-dev] [PATCH] makepkg : switch from getopt to getopts builtin

Roman Kyrylych roman.kyrylych at gmail.com
Tue Jun 3 05:50:19 EDT 2008


2008/6/3 Xavier <shiningxc at gmail.com>:
> 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.

Sounds reasonable.

-- 
Roman Kyrylych (Роман Кирилич)


More information about the pacman-dev mailing list