From 92111efb48916c9ae074215097789f3d1944f33e Mon Sep 17 00:00:00 2001 From: Gregg Kellogg Date: Tue, 27 Sep 2011 17:16:25 -0700 Subject: [PATCH] Output information about formats used for parsing in CLI. --- lib/rdf/cli.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rdf/cli.rb b/lib/rdf/cli.rb index d71dedae..51ac5c21 100644 --- a/lib/rdf/cli.rb +++ b/lib/rdf/cli.rb @@ -27,7 +27,7 @@ class CLI end end secs = Time.new - start - $stdout.puts "Parsed #{count} statements in #{secs} seconds @ #{count/secs} statements/second." + $stdout.puts "Parsed #{count} statements with #{@readers.join(', ')} in #{secs} seconds @ #{count/secs} statements/second." end, "lenghts" => lambda do |argv, opts| self.parse(argv, opts) do |reader| @@ -183,6 +183,7 @@ def self.parse(files, options = {}, &block) else files.each do |file| RDF::Reader.open(file, options) do |reader| + (@readers ||= []) << reader.class.to_s yield(reader) end end