Module: Compass::Commands::CompileProjectOptionsParser

Defined in:
lib/compass/commands/update_project.rb

Instance Method Summary collapse

Instance Method Details

#set_options(opts) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/compass/commands/update_project.rb', line 7

def set_options(opts)
  opts.banner = %Q{
    Usage: compass compile [path/to/project] [path/to/project/src/file.sass ...] [options]

    Description:
    compile project at the path specified or the current directory if not specified.

    Options:
  }.split("\n").map{|l| l.gsub(/^ */,'')}.join("\n")

  opts.on("--[no-]sourcemap", "Generate a sourcemap during compilation.") do |sm|
    self.options[:sourcemap] = sm
  end

  opts.on("--time", "Display compilation times.") do
    self.options[:time] = true
  end

  opts.on("--debug-info", "Turns on sass's debuging information") do
    self.options[:debug_info]= true
  end

  opts.on("--no-debug-info", "Turns off sass's debuging information") do
    self.options[:debug_info]= false
  end
  super
end