lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Fri, 09 Jan 2009 17:00:01 +0200
Aleksey Cheusov <> wrote:

> > Have you considered just writing a little C code to bind the C
> > library's getopt?  
> It trivial to implement getopt_long in LUA. I did it for AWK some time
> ago, ~150 lines of code. Also the problem with C code is that
> getopt_long(3) is not available on Solaris/HP-UX and some
> others. getopt_long(3) is not portable.

Surely getopt_long is not POSIX, however?  I'm confused about your
requirements, here.

Also: Lua is not an acronym, and thus should be capitalised as a
proper-noun :)