adding pseudo main method

This commit is contained in:
Donald Ball 2008-11-21 15:08:25 -06:00
parent 291cbfa602
commit 3c8a7942b1

View File

@ -1,6 +1,5 @@
require 'fileutils'
require 'open-uri'
require 'rexml/document'
require 'rubygems'
require 'rmagick'
@ -173,3 +172,11 @@ module Zoomifier
end
end
if __FILE__ == $0
if ARGV.length == 1
Zoomifier::zoomify(ARGV[0])
else
puts "Usage: zoomify filename"
end
end