module Compass::Commands::SpriteOptionsParser
Public Instance Methods
set_options(opts)
click to toggle source
Calls superclass method
# File lib/compass/commands/sprite.rb, line 7 def set_options(opts) opts.on("-f SPRITE_FILE") do |output_file| self.options[:output_file] = output_file end opts.on("--skip-overrides", "Skip the generation of sprite overrides") do |skip_overrides| self.options[:skip_overrides] = skip_overrides end opts.banner = %Q{ Usage: compass sprite [options] "images/path/to/sprites/*.png" Description: Generate a sprite import based on the given sprite directory. Alternatively, you can simply do this in your sass files: @import "sprite-folder/*.png" And a magical, custom made sprite file will be imported. Options: }.strip.split("\n").map{|l| l.gsub(/^ {0,10}/,'')}.join("\n") super end