use clap::Parser; #[derive(Parser, Debug, Clone)] #[clap( author = "Tomkoid", version, about, long_about = "Svobodný frontend pro Školu Online" )] pub struct Args { /// Instance description #[clap(short, long, value_parser, default_value = "reŠOL server")] pub description: String, /// Change bind IP for master Tor proxy #[clap(long, value_parser, default_value = "127.0.0.1")] pub tor_ip: String, /// Change bind port for master Tor proxy #[clap(long, value_parser, default_value_t = 9050)] pub tor_port: i32, /// Specify count of containers where Tor is running (docker-tor-group) #[clap(short = 'i', long, value_parser)] pub tor_instances: Option, /// Create new torrc configs for tor group #[clap(short = 'c', long, value_parser)] pub create_tor_config: Option, /// Change bind IP for Redis #[clap(long, value_parser, default_value_t = false)] pub redis: bool, /// Change bind IP for Redis #[clap(long, value_parser, default_value = "127.0.0.1")] pub redis_ip: String, /// Change bind port for Redis #[clap(long, value_parser, default_value_t = 6379)] pub redis_port: i32, /// Enable built-in rate limiter #[clap(short, long, value_parser)] pub rate_limiter: bool, }