diff --git a/src/main.rs b/src/main.rs index a7c7aaa..92b0ca5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,15 +7,15 @@ use local_ip_address::local_ip; #[derive(Parser)] #[clap(version)] struct Args { - /// Set the listener port - #[clap(short, long, default_value_t = 8000)] - port: u16, - /// Set the listener host [default: LAN IP address] - #[clap(short, long)] - host: Option, /// Set the root path of the static assets #[clap(default_value = ".")] root: String, + /// Set the listener host [default: LAN IP address] + #[clap(short='s', long)] + host: Option, + /// Set the listener port + #[clap(short, long, default_value_t = 8000)] + port: u16, } #[async_std::main]