diff --git a/Cargo.toml b/Cargo.toml index 2826ef9..971af14 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "http-server" -version = "0.10.1" +version = "0.10.2" authors = ["Damjan Georgievski "] license = "MIT" readme = "README.md" diff --git a/src/main.rs b/src/main.rs index ac6fd5a..85a3430 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,15 +7,17 @@ fn main() -> std::io::Result<()> { .version(clap::crate_version!()) .about(clap::crate_description!()) .arg(clap::Arg::with_name("chdir") + .short("w") .long("chdir") .value_name("DIRECTORY") - .help("Specify directory to server") + .help("directory to serve") .default_value(".") .takes_value(true)) .arg(clap::Arg::with_name("addr") + .short("b") .long("bind") .value_name("ADDRESS") - .help("Specify alternate bind address") + .help("bind address") .default_value("0.0.0.0") .takes_value(true)) .arg(clap::Arg::with_name("port")