lua-users home
lua-l archive

Re: WANTED: POSIX compatible getopt

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


On 2009年1月09日 17:48:17 +0200
Aleksey Cheusov <cheusov@tut.by> wrote:
> 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. And you
seemed to be suggesting earlier that programs that didn't follow these
guidelines were somehow not POSIX compliant.
> 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.
-- 
B.

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