diff --git a/src/cli.rs b/src/cli.rs index 873157b..c2c8600 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -31,7 +31,7 @@ impl Args { fn args_parser() -> Option { let args: Vec = env::args().collect(); match args.len() { - 2 => Some(Args::new(&args[1], &args[2])), + 2 => Some(Args::new(&args[0], &args[1])), _ => None, } }