зеркало из https://github.com/github/ruby.git
* lib/test/unit.rb: help messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
58f1c8fca8
Коммит
949e6d454e
|
@ -1,3 +1,7 @@
|
||||||
|
Tue Dec 14 18:31:48 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/test/unit.rb: help messages.
|
||||||
|
|
||||||
Tue Dec 14 18:19:03 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
Tue Dec 14 18:19:03 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* common.mk (help): there is no reason to use the abbreviation for here.
|
* common.mk (help): there is no reason to use the abbreviation for here.
|
||||||
|
|
|
@ -79,7 +79,7 @@ module Test
|
||||||
|
|
||||||
def setup_options(parser, options)
|
def setup_options(parser, options)
|
||||||
super
|
super
|
||||||
parser.on '-x', '--exclude PATTERN' do |pattern|
|
parser.on '-x', '--exclude PATTERN', 'Exclude test files on pattern.' do |pattern|
|
||||||
(options[:reject] ||= []) << pattern
|
(options[:reject] ||= []) << pattern
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -117,7 +117,7 @@ module Test
|
||||||
|
|
||||||
def setup_options(parser, options)
|
def setup_options(parser, options)
|
||||||
super
|
super
|
||||||
parser.on '-Idirectory' do |dirs|
|
parser.on '-Idirectory', 'Add library load path' do |dirs|
|
||||||
dirs.split(':').each { |d| $LOAD_PATH.unshift d }
|
dirs.split(':').each { |d| $LOAD_PATH.unshift d }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -126,7 +126,7 @@ module Test
|
||||||
module GCStressOption
|
module GCStressOption
|
||||||
def setup_options(parser, options)
|
def setup_options(parser, options)
|
||||||
super
|
super
|
||||||
parser.on '--[no-]gc-stress' do |flag|
|
parser.on '--[no-]gc-stress', 'Set GC.stress as true' do |flag|
|
||||||
options[:gc_stress] = flag
|
options[:gc_stress] = flag
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Загрузка…
Ссылка в новой задаче