Skip to content

Commit

Permalink
dhcp: allow passing the port
Browse files Browse the repository at this point in the history
  • Loading branch information
joaofl committed Dec 31, 2024
1 parent 563fd4a commit 0b37ef2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ pub struct Cli {
default_missing_value = Protocol::Dhcp.get_default_port().to_string(),
help = format!("Start the DHCP server"),
long, required = false,
num_args = 0,
// require_equals = true,
num_args = 0..=1,
require_equals = true,
value_name = "PORT",
)] pub dhcp: Option<bool>,
}
Expand Down

0 comments on commit 0b37ef2

Please sign in to comment.