diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/test/unit.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/test/unit.rb b/lib/test/unit.rb index 73ce1b82c3..97d0da5ca5 100644 --- a/lib/test/unit.rb +++ b/lib/test/unit.rb @@ -36,13 +36,16 @@ module Test end def process_args(args = []) + orig_args = args.dup options = {} OptionParser.new do |opts| setup_options(opts, options) opts.parse!(args) + orig_args -= args end args = @init_hook.call(args, options) if @init_hook non_options(args, options) + @help = orig_args.map { |s| s =~ /[\s|&<>$()]/ ? s.inspect : s }.join " " options end |