Skip to content

Commit

Permalink
Fix short name conflict and reorder arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
lomirus committed Dec 18, 2023
1 parent 622758a commit e9d4adf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,
/// 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<String>,
/// Set the listener port
#[clap(short, long, default_value_t = 8000)]
port: u16,
}

#[async_std::main]
Expand Down

0 comments on commit e9d4adf

Please sign in to comment.