Files
crawlnicle/src/config.rs
Tyler Hallada 7e06d23bba Replace argh with clap
Mostly for the more concise Config parsing and error handling.
2023-06-27 14:03:52 -04:00

18 lines
377 B
Rust

use clap::Parser;
#[derive(Parser, Clone, Debug)]
pub struct Config {
#[clap(long, env)]
pub database_url: String,
#[clap(long, env)]
pub database_max_connections: u32,
#[clap(long, env)]
pub host: String,
#[clap(long, env)]
pub port: u16,
#[clap(long, env)]
pub title: String,
#[clap(long, env)]
pub max_mem_log_size: usize,
}