From b3b77222781b02ea323572ec28ab85f5e388fe98 Mon Sep 17 00:00:00 2001 From: Milo <50248166+Milo123459@users.noreply.github.com> Date: Sun, 25 Jul 2021 15:09:47 +0100 Subject: [PATCH] fix: arguments: use action everywhere again --- src/cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.rs b/src/cli.rs index 7c289b4a..f8ee2529 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -449,7 +449,7 @@ pub fn match_cmds(args: Arguments, config: GlitterRc) -> anyhow::Result<()> { let cmd = cmds.into_iter().map(|x| x.name).collect::>(); if cmd.into_iter().any(| s| s == args.action.to_lowercase()) { - let exec = exec_cmds.into_iter().filter(|x| x.name == args.arguments.first().unwrap().to_lowercase()).map(|x| x.execute); + let exec = exec_cmds.into_iter().filter(|x| x.name == args.action.to_lowercase()).map(|x| x.execute); if dry { println!( "{} {} {}",