summaryrefslogtreecommitdiff
path: root/bootstraptest/runner.rb
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-24 07:51:52 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-24 07:51:52 +0000
commitd7c2f391fc08ff5354c06b50b7170ce7afbee3b4 (patch)
tree24d039d550733a94e906d35f363a11fc2d720e33 /bootstraptest/runner.rb
parent18e1d27353a3abbcdc8c7d77c0cb3af095d3d099 (diff)
* bootstraptest/runner.rb: new option --help.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/runner.rb')
-rw-r--r--bootstraptest/runner.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb
index d48d14e..d5934d0 100644
--- a/bootstraptest/runner.rb
+++ b/bootstraptest/runner.rb
@@ -20,6 +20,13 @@ def main
tests = Dir.glob("#{File.dirname($0)}/test_{#{$1}}*.rb")
puts tests.map {|path| File.basename(path) }.inspect
true
+ when /\A(-h|--h(elp)?\z/
+ puts(<<-End)
+Usage: #{File.basename($0, '.*')} --ruby=PATH [--sets=NAME,NAME,...]
+ --sets=NAME,NAME,... Name of test sets.
+ --help Print this message and quit.
+End
+ exit 0
else
false
end