Methods

Class/Module Index [+]

Quicksearch

Compass::Commands::ConfigurationOptionsParser

Public Instance Methods

set_options(opts) click to toggle source
# File lib/compass/commands/write_configuration.rb, line 6
def set_options(opts)
  opts.banner = %{
    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

[Validate]

Generated with the Darkfish Rdoc Generator 2.