Skip to content

Commit

Permalink
Fix: infinite recursion when invoking with --help
Browse files Browse the repository at this point in the history
closes #50
  • Loading branch information
ysbaddaden committed Dec 18, 2023
1 parent 190b465 commit 6d44384
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/minitest.cr
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ module Minitest

opts.on("-h", "--help", "Display this help") do
puts opts
exit
exit(0)
end

opts.on("-s SEED", "--seed SEED", "Sets random seed. Also via SEED environment variable.") do |seed|
Expand Down Expand Up @@ -174,6 +174,6 @@ module Minitest

def self.exit(status : Int32 = 1) : NoReturn
after_run.each(&.call)
exit status
::exit status
end
end

0 comments on commit 6d44384

Please sign in to comment.