bin/sup-sync in sup-0.22.1 vs bin/sup-sync in sup-0.23

- old
+ new

@@ -1,11 +1,11 @@ #!/usr/bin/env ruby $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib]) require 'uri' -require 'trollop' +require 'optimist' require "sup" PROGRESS_UPDATE_INTERVAL = 15 # seconds class Float @@ -28,11 +28,11 @@ startt = Time.now yield Time.now - startt end -opts = Trollop::options do +opts = Optimist::options do version "sup-sync (sup #{Redwood::VERSION})" banner <<EOS Synchronizes the Sup index with one or more message sources by adding messages, deleting messages, or changing message state in the index as appropriate. @@ -110,10 +110,10 @@ Redwood::SourceManager.sources elsif ARGV.empty? Redwood::SourceManager.usual_sources else ARGV.map do |uri| - Redwood::SourceManager.source_for uri or Trollop::die "Unknown source: #{uri}. Did you add it with sup-add first?" + Redwood::SourceManager.source_for uri or Optimist::die "Unknown source: #{uri}. Did you add it with sup-add first?" end end sources.each do |source| puts "Scanning #{source}..."