From d35d0b8adb56a8c9078f21a5749b34de8a337cb0 Mon Sep 17 00:00:00 2001 From: j03-dev <24nomeniavo@gmail.com> Date: Wed, 18 Oct 2023 00:24:16 +0300 Subject: [PATCH] fix len bug --- src/cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, } }