Skip to main content

cli/
cli.rs

1extern crate jd_decrypter;
2
3use std::env;
4use jd_decrypter::JdAccountList;
5
6fn main() {
7    // loop over all arguments for the programm
8    // skip the first one because it's the programm
9    // own name
10    for arg in env::args().skip(1) {
11        // hand over the file path
12        let dlc = JdAccountList::from_file(arg);
13
14        // print the result
15        println!("Accounts: {:?}", dlc);
16    }
17}