[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: WANTED: POSIX compatible getopt
- From: Aleksey Cheusov <cheusov@...>
- Date: Fri, 09 Jan 2009 17:59:04 +0200
>> 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.
- References:
- WANTED: POSIX compatible getopt, Aleksey Cheusov
- Re: WANTED: POSIX compatible getopt, Javier Guerra
- Re: WANTED: POSIX compatible getopt, Aleksey Cheusov
- Re: WANTED: POSIX compatible getopt, Rob Kendrick
- Re: WANTED: POSIX compatible getopt, Aleksey Cheusov
- Re: WANTED: POSIX compatible getopt, Rob Kendrick
- Re: WANTED: POSIX compatible getopt, Aleksey Cheusov
- Re: WANTED: POSIX compatible getopt, Rob Kendrick
- Re: WANTED: POSIX compatible getopt, Aleksey Cheusov
- Re: WANTED: POSIX compatible getopt, Rob Kendrick
- Re: WANTED: POSIX compatible getopt, Aleksey Cheusov
- Re: WANTED: POSIX compatible getopt, Rob Kendrick