Fix clap configuration

This commit is contained in:
Pierre HUBERT 2024-08-21 17:18:49 +02:00
parent 661e6fdaa6
commit 7dccdf58fa

View File

@ -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,
}