lua-users home
lua-l archive

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


> On Fri, 09 Jan 2009 17:20:57 +0200
> Aleksey Cheusov <cheusov@tut.by> wrote:

 >> 1) to be compatible with
 >>    http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap12.html#tag_12_02

> Ah, right.  These are guidelines only, thus something that does not
> follow them is not unPOSIXy.

Not exactly.

See
http://www.opengroup.org/onlinepubs/009695399/functions/getopt.html

SYNOPSIS

   #include <unistd.h>

   int getopt(int argc, char * const argv[], const char *optstring);
   extern char *optarg;
   extern int optind, opterr, optopt;
...
DESCRIPTION

The getopt() function is a command-line parser that _shall follow_
Utility Syntax Guidelines 3, 4, 5, 6, 7, 9, and 10 in the Base
Definitions volume of IEEE Std 1003.1-2001, Section 12.2, Utility
Syntax Guidelines.

-- 
Best regards, Aleksey Cheusov.