hyperparameter 0.5.13

A high performance configuration system for Rust.
Documentation
use clap::Parser;
use hyperparameter::*;

#[derive(Parser)]
#[command(after_long_help=generate_params_help())] // Displays parameter helps when `<app> --help` is executed.
struct CommandLineArgs {
    /// Specifies hyperparameters in the format `-D key=value` via the command line.
    #[arg(short = 'D', long)]
    define: Vec<String>,
}

fn main() {
    let args = CommandLineArgs::parse();
    with_params! {
        params ParamScope::from(&args.define);

        // Retrieves `example.param1` with a default value of `1` if not specified.
        println!("param1={}", get_param!(example.param1, false, "help for example.param1"));
    }
}