bin/sup-dump in sup-0.10.2 vs bin/sup-dump in sup-0.11

- old
+ new

@@ -1,10 +1,10 @@ #!/usr/bin/env ruby require 'rubygems' require 'trollop' -require "sup"; Redwood::check_library_version_against "0.10.2" +require "sup"; Redwood::check_library_version_against "0.11" $opts = Trollop::options do version "sup-dump (sup #{Redwood::VERSION})" banner <<EOS Dumps all message state from the sup index to standard out. You can @@ -14,16 +14,13 @@ the index format. This happened, for example, at Ferret version 0.11. Usage: sup-dump > <filename> sup-dump | bzip2 > <filename> # even better - -Options: EOS - opt :index, "Use this index type ('auto' for autodetect)", :default => "auto" end -index = Redwood::Index.init $opts[:index] +index = Redwood::Index.init Redwood::SourceManager.init index.load index.each_message :load_spam => true, :load_deleted => true, :load_killed => true do |m| puts "#{m.id} (#{m.labels.to_a.sort_by { |l| l.to_s } * ' '})"