lua-users home
lua-l archive

Re: WANTED: POSIX compatible getopt

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


 >> Most applications written in C use system getopt(3) or getopt_long(3)
 >> and therefore follow these guidelines. These guidelines show how
 >> applications usually work, not only standardized `cat', `cut', `grep'
 >> etc. and I think apps written in Lua shell follow these rules too
 >> _by default_ just like all C application.
> Not like all C applications. Many do their own parsing.
Yes, there are exceptions. But most use getopt(3).
> And you seemed to be suggesting earlier that programs that didn't
> follow these guidelines were somehow not POSIX compliant.
No, I didn't say this :-)
Ah, never mind.
 >> Unfortunately I don't see such module for Lua.
> Things don't exist until somebody creates them. As I said earlier, I
> suggest you write a binding to BSD's long getopt implementation. It
> should be trivial.
I'll write it in Lua
-- 
Best regards, Aleksey Cheusov.

AltStyle によって変換されたページ (->オリジナル) /