From e20c829d92f56cbdd12815313f524895573949ee Mon Sep 17 00:00:00 2001 From: Mirus Date: Wed, 20 Dec 2023 23:30:17 +0800 Subject: [PATCH] refactor: adjust short name of the host argument --- README.md | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9676726..0c98b5f 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Arguments: [ROOT] Set the root path of the static assets [default: .] Options: - -s, --host Set the listener host [default: LAN IP address] + -H, --host Set the listener host [default: LAN IP address] -p, --port Set the listener port [default: 8000] -h, --help Print help -V, --version Print version diff --git a/src/main.rs b/src/main.rs index d27d9b9..a85585b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,7 +11,7 @@ struct Args { #[clap(default_value = ".")] root: String, /// Set the listener host [default: LAN IP address] - #[clap(short = 's', long)] + #[clap(short = 'H', long)] host: Option, /// Set the listener port #[clap(short, long, default_value_t = 8000)]