Skip to main content

bw/platform/
serve.rs

1#[derive(clap::Args, Clone)]
2pub struct ServeArgs {
3    #[arg(long, help = "Port number to listen on.", default_value = "8087")]
4    pub port: u16,
5
6    #[arg(long, help = "Hostname to bind to.", default_value = "localhost")]
7    pub hostname: String,
8
9    #[arg(
10        long,
11        help = "Disable origin protection (not recommended for production use)."
12    )]
13    pub disable_origin_protection: bool,
14}