lib/bbiff/show.rb in bbiff-0.2.2 vs lib/bbiff/show.rb in bbiff-0.3.0

- old
+ new

@@ -14,10 +14,10 @@ if ARGV.size != 2 raise UsageError end title = ARGV[0] - post = Bbs::Post.from_line(ARGV[1]) + post = Bbs::Post.from_s(ARGV[1]) notify_send = ENV['BBIFF_NOTIFY_SEND'] || (`which #{NOTIFY_SEND}` != "" ? NOTIFY_SEND : 'echo') system("#{notify_send} #{Shellwords.escape(title)} #{Shellwords.escape(render_post(post))}") rescue UsageError