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!( "{} {} {}",