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"))
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue