cliargs is a command-line argument parser for Lua.
It supports several types of arguments.
