* lib/test/unit.rb (process_args): need to setup @help to print options.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
79d800c37e
commit
1c93261983
@ -1,3 +1,7 @@
|
|||||||
|
Wed Dec 15 20:45:02 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/test/unit.rb (process_args): need to setup @help to print options.
|
||||||
|
|
||||||
Wed Dec 15 11:19:33 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
Wed Dec 15 11:19:33 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* test/zlib/test_zlib.rb (test_to_io): forgotten to fix with r30201.
|
* test/zlib/test_zlib.rb (test_to_io): forgotten to fix with r30201.
|
||||||
|
@ -36,13 +36,16 @@ module Test
|
|||||||
end
|
end
|
||||||
|
|
||||||
def process_args(args = [])
|
def process_args(args = [])
|
||||||
|
orig_args = args.dup
|
||||||
options = {}
|
options = {}
|
||||||
OptionParser.new do |opts|
|
OptionParser.new do |opts|
|
||||||
setup_options(opts, options)
|
setup_options(opts, options)
|
||||||
opts.parse!(args)
|
opts.parse!(args)
|
||||||
|
orig_args -= args
|
||||||
end
|
end
|
||||||
args = @init_hook.call(args, options) if @init_hook
|
args = @init_hook.call(args, options) if @init_hook
|
||||||
non_options(args, options)
|
non_options(args, options)
|
||||||
|
@help = orig_args.map { |s| s =~ /[\s|&<>$()]/ ? s.inspect : s }.join " "
|
||||||
options
|
options
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user