use structopt::StructOpt; use std::path::PathBuf; #[derive(Debug, StructOpt)] struct Options { #[structopt(short, long, default_value = "/etc/noise-server/config.toml")] config: PathBuf, #[structopt(short, long, default_value = "/var/lib/noise-server/noise-server.sqlite")] database_path: PathBuf, } fn main() { let options = Options::from_args(); }