Not using main, for now.

master
Jeff Dallien 2012-02-20 18:36:19 -05:00 committed by Jeff Dallien
parent 6bc06df239
commit 0f8b1404e1
1 changed files with 6 additions and 8 deletions

View File

@ -2,12 +2,10 @@
require File.expand_path(File.join(File.dirname(__FILE__), "..", "lib", "cookie_extractor"))
Main do
# TODO: detect firefox or chrome input file and/or locate it automatically
filename = ARGV.first
if filename
puts CookieExtractor::FirefoxCookieExtractor.new(filename).extract.join("\n")
else
puts "Usage: cookie-extractor /path/to/cookies.sqlite"
end
# TODO: detect firefox or chrome input file and/or locate it automatically
filename = ARGV.first
if filename
puts CookieExtractor::FirefoxCookieExtractor.new(filename).extract.join("\n")
else
puts "Usage: cookie-extractor /path/to/cookies.sqlite"
end