Skip to content

Commit

Permalink
fix: execute hook from resolved command; fixes #11
Browse files Browse the repository at this point in the history
  • Loading branch information
devnote-dev committed Sep 18, 2023
1 parent 9f904ad commit d79dcbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cling/executor.cr
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module Cling::Executor
begin
executed = get_in_position resolved_command, results
rescue ex : ExecutionError
command.on_invalid_option ex.to_s
resolved_command.on_invalid_option ex.to_s
return
end

Expand Down

0 comments on commit d79dcbd

Please sign in to comment.