File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#!/usr/bin/env ruby
22begin
33 require 'rubytest'
4- Test ::CLI . run ( * ARGV )
4+ Test ::CLI . run
55rescue RuntimeError => error
66 raise error if $DEBUG
77 $stderr. puts error
Original file line number Diff line number Diff line change 11#!/usr/bin/env ruby
22begin
33 require 'rubytest'
4- Test ::CLI . run ( * ARGV )
4+ Test ::CLI . run
55rescue RuntimeError => error
66 raise error if $DEBUG
77 $stderr. puts error
Original file line number Diff line number Diff line change @@ -26,15 +26,17 @@ def config
2626 #
2727 # Run tests.
2828 #
29- def run ( * argv )
29+ def run ( argv = nil )
3030 begin
3131 require 'dotopts'
3232 rescue LoadError
3333 end
3434
35- options . parse! ( argv )
35+ argv = ( argv || ARGV . dup )
3636
37- config . files . replace ( argv ) unless argv . empty?
37+ options . parse! ( argv )
38+
39+ config . files . replace ( argv ) unless argv . empty?
3840
3941 Test . run ( config )
4042
You can’t perform that action at this time.
0 commit comments