From b99c5bf42a7747c14622aa047ab5157a99c24f8f Mon Sep 17 00:00:00 2001 From: fengyingcai Date: Wed, 15 Jun 2022 00:21:47 +0800 Subject: [PATCH] chore: fix clap warning --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 6761961..a3d6e07 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,15 +6,15 @@ use wol::{send_wol, MacAddr}; #[clap(version, about, long_about = None)] struct Args { /// Destination MAC address - #[clap(name = "MAC_ADDR")] + #[clap(name = "MAC_ADDR", value_parser)] mac_addr: String, /// Broadcast IP address - #[clap(short = 'c', long, default_value = "255.255.255.255")] + #[clap(short = 'c', long, value_parser, default_value = "255.255.255.255")] bcast_addr: String, /// Bind IP address - #[clap(short = 'b', long, default_value = "0.0.0.0")] + #[clap(short = 'b', long, value_parser, default_value = "0.0.0.0")] bind_addr: String, }