Fix clap configuration
This commit is contained in:
parent
661e6fdaa6
commit
7dccdf58fa
@ -16,10 +16,10 @@ async fn home() -> HttpResponse {
|
||||
#[command(version, about, long_about = None)]
|
||||
struct Args {
|
||||
/// Minimal port this server will listen to
|
||||
#[arg(short, long, default_value_t = 80)]
|
||||
#[arg(short('m'), long, default_value_t = 80)]
|
||||
min_port: u16,
|
||||
/// Maximal port this server will listen to
|
||||
#[arg(short, long, default_value_t = 1000)]
|
||||
#[arg(short('M'), long, default_value_t = 1000)]
|
||||
max_port: u16,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user