StructConf is a small derive macro that allows you to combine argument parsing from clap and config file parsing from rust-ini at compile time. It's inspired by the argument parser structopt, and developed to be used in Vidify. Example:
```rust use clap::App; use structconf::StructConf;
struct Config {
// Option available in the config file and the arguments
#[conf(help = "description for the argument parser.")]
pub default: i32,
// Specify where the options are available.
#[conf(nofile)]
pub argsopt: u8,
#[conf(noshort, nolong)]
pub confopt: Option
pub fn main() { let app = App::new("demo"); let conf = Config::parse(app, "config.ini"); println!("Parsed config: {:#?}", conf); } ```
Read the docs for more details on how to use StructConf.