Skip to content

Commit

Permalink
fix: arguments: use action everywhere again
Browse files Browse the repository at this point in the history
  • Loading branch information
Milo123459 committed Jul 25, 2021
1 parent f371465 commit b3b7722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ pub fn match_cmds(args: Arguments, config: GlitterRc) -> anyhow::Result<()> {
let cmd = cmds.into_iter().map(|x| x.name).collect::<Vec<String>>();
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!(
"{} {} {}",
Expand Down

0 comments on commit b3b7722

Please sign in to comment.