adding pseudo main method
This commit is contained in:
parent
291cbfa602
commit
3c8a7942b1
@ -1,6 +1,5 @@
|
|||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
require 'open-uri'
|
require 'open-uri'
|
||||||
require 'rexml/document'
|
|
||||||
require 'rubygems'
|
require 'rubygems'
|
||||||
require 'rmagick'
|
require 'rmagick'
|
||||||
|
|
||||||
@ -173,3 +172,11 @@ module Zoomifier
|
|||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if __FILE__ == $0
|
||||||
|
if ARGV.length == 1
|
||||||
|
Zoomifier::zoomify(ARGV[0])
|
||||||
|
else
|
||||||
|
puts "Usage: zoomify filename"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user