cor-args
A Rust library providing Chain of Responsibility command line argument parsing.
Example
The following example will assign config_path according to the following:
- Look for a command-line argument named
--config - Look for an environment variable named
MYAPP_config - Default to
~/.config/myapp/default.yaml
let args = new
.arg
.get_matches;
let config_path = new
.next;
.handle_request;
let config_path = config_path.expect;