Skip to content

Commit

Permalink
chore: fix clap warning
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyc committed Jun 14, 2022
1 parent ec6fc33 commit b99c5bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down

0 comments on commit b99c5bf

Please sign in to comment.