diff options
author | boasting-squirrel <boasting.squirrel@gmail.com> | 2019-02-16 09:54:07 +0000 |
---|---|---|
committer | boasting-squirrel <boasting.squirrel@gmail.com> | 2019-02-16 09:54:07 +0000 |
commit | ba12a1e3a8a138cb90974b09de797e967e6e68ea (patch) | |
tree | a818a376c7ccf1d624400527b5cd306e2dfaac59 /src/args.rs | |
parent | Re-ordered arguments in README.md to avoid '--' issue (diff) | |
download | miniserve-ba12a1e3a8a138cb90974b09de797e967e6e68ea.tar.gz miniserve-ba12a1e3a8a138cb90974b09de797e967e6e68ea.zip |
Set number_of_values argument to interfaces
Diffstat (limited to '')
-rw-r--r-- | src/args.rs | 7 |
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) |