- Assignee changed from matz (Yukihiro Matsumoto) to zenspider (Ryan Davis)
=begin
Hi,
I execute below command.
I think it shows help messages, but execute tests only.
$ ruby test_foo.rb --help
For convenience, I want it to show help messages.
Ryan, what do you think about this feature request?
diff --git a/lib/minitest/unit.rb b/lib/minitest/unit.rb
index 1570b7f..67b789a 100644
--- a/lib/minitest/unit.rb
+++ b/lib/minitest/unit.rb
@@ -383,15 +383,25 @@ module MiniTest
# Top level driver, controls all output and filtering.
def run args = []
-
@verbose = args.delete('-v')
-
-
filter = if args.first =~ /^(-n|--name)$/ then
-
args.shift
-
arg = args.shift
-
arg =~ /\/(.*)\// ? Regexp.new($1) : arg
-
else
-
/./ # anything - ^test_ already filtered by #tests
-
end
+usage: ruby #{ $0 }
--
Yusuke Endoh mame@tsg.ne.jp
=end