use std::net::IpAddr; #[derive(StructOpt)] pub(crate) struct Opt { #[structopt(short = "p", long = "port", default_value = "8080")] /// Port to listen on pub(crate) port: u16, #[structopt(short = "i", long = "interface", default_value = "0.0.0.0")] /// Interface to listen on pub(crate) interface: IpAddr, #[structopt(short = "w", long = "workers", default_value = "4")] /// Number of worker threads pub(crate) workers: usize, #[structopt(long = "gh-id")] /// GitHub OAuth client ID pub(crate) github_id: Option, #[structopt(long = "gh-secret")] /// GitHub OAuth client secret pub(crate) github_secret: Option, }