A standalone version of lua stdlib's getopt module