bin/probe in utils-0.0.95 vs bin/probe in utils-0.0.96

- old
+ new

@@ -73,13 +73,13 @@ def connect_server puts "Connecting probe server on #{$uri.inspect}." DRb.start_service probe_server = DRbObject.new_with_uri($uri) if $opt['c'] - opts = $opt.subhash('n', 't').map { |k, v| - v.full? { "-#{k} #{v.inspect}" } - }.compact + opts = $opt.subhash('n', 't').each_with_object([]) { |(k, v), a| + v.full? and a.concat [ "-#{k}", v ] + } probe_server.enqueue opts + $args exit elsif $opt['C'] ARGV.clear Tins::IRB.examine probe_server @@ -88,10 +88,10 @@ end case when $opt['l'] start_server -else +when $opt['c'], $opt['C'] connect_server end $args.empty? and fail "require filename or filename:linenumber as arguments" puts "Running tests in #{$args.inspect}"