Skip to content

Commit

Permalink
refactor: adjust short name of the host argument
Browse files Browse the repository at this point in the history
  • Loading branch information
lomirus committed Dec 20, 2023
1 parent a333365 commit e20c829
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Arguments:
[ROOT] Set the root path of the static assets [default: .]

Options:
-s, --host <HOST> Set the listener host [default: LAN IP address]
-H, --host <HOST> Set the listener host [default: LAN IP address]
-p, --port <PORT> Set the listener port [default: 8000]
-h, --help Print help
-V, --version Print version
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,
/// Set the listener port
#[clap(short, long, default_value_t = 8000)]
Expand Down

0 comments on commit e20c829

Please sign in to comment.