#!/usr/bin/env ruby $LOAD_PATH.push File.expand_path("../lib", File.dirname(__FILE__)) # add sprite factory library to load path require 'sprite_factory' require 'optparse' options = { :report => true } op = OptionParser.new op.banner = "#{SpriteFactory::DESCRIPTION}\nUsage: sprite [options]" op.on("-h", "--help") do puts op.to_s exit end op.on("-v", "--version") do puts SpriteFactory::VERSION exit end layout_help = "specify layout orientation ( horizontal, vertical, packed )" style_help = "specify stylesheet syntax ( css, scss, sass )" library_help = "specify image library to use ( rmagic, chunkypng )" selector_help = "specify custom selector to use for each css rule ( default: 'img.' )" cssurl_help = "specify custom string to use for css image urls ( default: 'url(output image basename)' )" output_image_help = "specify output location for generated image ( default: .png )" output_style_help = "specify output location for generated stylesheet ( default: .