Lua API for getopt similar to getopt_long(3)
