aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/args.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/args.rs b/src/args.rs
index 781910c..637c224 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -29,7 +29,12 @@ struct CLIArgs {
port: u16,
/// Interface to listen on
- #[structopt(short = "i", long = "if", parse(try_from_str = "parse_interface"))]
+ #[structopt(
+ short = "i",
+ long = "if",
+ parse(try_from_str = "parse_interface"),
+ raw(number_of_values = "1")
+ )]
interfaces: Vec<IpAddr>,
/// Set authentication (username:password)