1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix the option name in the error message [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2022-09-19 14:11:37 +09:00
parent ea22403653
commit 12e5e5b573
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -154,8 +154,7 @@ End
end
}
if tests and not ARGV.empty?
$stderr.puts "--tests and arguments are exclusive"
exit false
abort "--sets and arguments are exclusive"
end
tests ||= ARGV
tests = Dir.glob("#{File.dirname($0)}/test_*.rb").sort if tests.empty?