lua_cliargs
lua_cliargs copied to clipboard
A command-line argument parsing module for Lua.
Currently there are some optional dependencies including on [yaml](https://luarocks.org/modules/gaspard/yaml) that are not Lua 5.4 compatible. These should be made easier to swap out for a loader of choice including a...
Unfortunately, this is a breaking change and requires a major release. The patch makes it so that we no longer reject more than 999 repetitions for a splat argument, and...
The way the `--help` text is parsed the message is returned in the same field as an actual parsing error, and the return code is the same as if it...
This PR is designed to fix https://github.com/lunarmodules/lua_cliargs/issues/72. The design decision I've made is to just remove the code that existed to register the `-h`/`--help` options as a "special condition", but...
luarocks install lua_cliargs `Installing https://luarocks.org/lua_cliargs-3.0-2.src.rock lua_cliargs 3.0-2 depends on lua >= 5.1 (5.1-1 provided by VM) Error: Failed producing checksum: no MD5 checker tool available, please install md5sum, openssl or...
Setting the "default" value for an option to an empty table seems to enable that option to be specified multiple times and return a table instead of a string, but...
In the 2.x series of releases it was possible to setup an option that had no value if not set, a default value if just the flag was added but...
Example of what should be done: ``` ./prog.lua build ``` and ``` ./prog.lua install ``` but if i make install and build both options i get the following error: `mpm:...
In most *nix tooling, `-` can be used as an alias for either `/dev/stdin` or `/dev/stdout` (depending on what is expected in the context). I can't figure out how to...
Even with #63 applied, reading from .ini files can fail: **Minimum working example:** *test.ini* ``` [database] verbose=true port=5432 ``` *test.lua* ``` 1 cli = require 'cliargs'; 2 tbl = cli:read_defaults('test.ini',...