Skip to content

Commit

Permalink
Output information about formats used for parsing in CLI.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Sep 28, 2011
1 parent 4908865 commit 92111ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rdf/cli.rb
Expand Up @@ -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|
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 92111ef

Please sign in to comment.