module Compass::Commands::ConfigurationOptionsParser
Public Instance Methods
set_options(opts)
click to toggle source
Calls superclass method
# File lib/compass/commands/write_configuration.rb, line 6 def set_options(opts) opts.banner = %Q{ Usage: compass config [path/to/config_file.rb] [options] Description: Generate a configuration file for the options specified. Compass will recognize configuration files in the following locations relative to the project root: * #{Compass::Configuration::Helpers::KNOWN_CONFIG_LOCATIONS.join(" * ")} Any other location, and you'll need to specify it when working with the command line tool using the -c option. Options: }.strip.split("\n").map{|l| l.gsub(/^ {0,10}/,'')}.join("\n") opts.on("--debug [PROPERTY]", "Debug your configuration by printing out details.") do |prop| self.options[:debug] = prop.nil? ? true : prop.to_sym end opts.on("-p PROPERTY", "--property PROPERTY", "Print out the value of a particular configuration property") do |prop| self.options[:display] = prop.to_sym end super end