2024-03-23 20:28:03 +00:00
|
|
|
|
|
|
|
use clap::Parser;
|
|
|
|
|
|
|
|
#[derive(Debug, Clone, Parser)]
|
|
|
|
#[command(version, about, long_about = None)]
|
|
|
|
pub struct CliArgs {
|
|
|
|
/// Port to bind to
|
|
|
|
#[arg(short, long, default_value_t=8080)]
|
|
|
|
pub port: u16,
|
|
|
|
|
|
|
|
/// Host ip to bind to, usually not required to change
|
2024-03-23 20:31:40 +00:00
|
|
|
#[arg(long, default_value="0.0.0.0")]
|
2024-03-23 20:28:03 +00:00
|
|
|
pub host: String,
|
|
|
|
|
|
|
|
/// Extra debugging output
|
|
|
|
#[arg(long, short)]
|
|
|
|
pub debug: bool
|
|
|
|
}
|