aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs8
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();
- };
+ }
}