lua-users home
lua-l archive

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

> On Fri, Jan 9, 2009 at 9:19 AM, Aleksey Cheusov <> wrote:
 >> doesn't look good too.

> looks clean to me.  what's bad with this?

1) This code is not versioned. I'd prefer to use code
   registered somewhere as a separate project, e.g. luaforge.
   I'd like to package getopt for pkgsrc (
2) `--' is not processed correctly, processing the args should be stopped
    at `--'.
3) `-' (meaning stdin) is not processed correctly, the same as 2)
4) `--long-opt value' is not handled correctly
5) `-ab' where neither -a not -b accept value is not handled correctly

This code doesn't do what I need and is not compatible with SUS/POSIX.

Best regards, Aleksey Cheusov.