Not using main, for now.
This commit is contained in:
parent
6bc06df239
commit
0f8b1404e1
1 changed files with 6 additions and 8 deletions
|
@ -2,12 +2,10 @@
|
||||||
|
|
||||||
require File.expand_path(File.join(File.dirname(__FILE__), "..", "lib", "cookie_extractor"))
|
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
|
||||||
# TODO: detect firefox or chrome input file and/or locate it automatically
|
filename = ARGV.first
|
||||||
filename = ARGV.first
|
if filename
|
||||||
if filename
|
puts CookieExtractor::FirefoxCookieExtractor.new(filename).extract.join("\n")
|
||||||
puts CookieExtractor::FirefoxCookieExtractor.new(filename).extract.join("\n")
|
else
|
||||||
else
|
puts "Usage: cookie-extractor /path/to/cookies.sqlite"
|
||||||
puts "Usage: cookie-extractor /path/to/cookies.sqlite"
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue