diff options
-rw-r--r-- | src/main.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index ffe811e..9450068 100644 --- a/src/main.rs +++ b/src/main.rs @@ -111,10 +111,12 @@ fn check(pw: Password) -> Result<(), Box<::std::error::Error>> { } fn main() { + let mut passwords = Vec::new(); for arg in env::args().skip(1) { - let pw = Password::new(&arg); - println!("{}:{}:{}:", &arg, pw.range, pw.rest); + passwords.push(Password::new(&arg)); + }; + for pw in passwords { check(pw).unwrap(); - }; + } } |