From a8e48c5a2ab5f6fde9e5d8dffb440119391d84ae Mon Sep 17 00:00:00 2001 From: Scott Davis Date: Mon, 2 Jan 2012 02:49:38 -0500 Subject: [PATCH] added support for --debug-info and --no-debug-info to compass compile --- lib/compass/commands/update_project.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/compass/commands/update_project.rb b/lib/compass/commands/update_project.rb index 3edd6074..66098d34 100644 --- a/lib/compass/commands/update_project.rb +++ b/lib/compass/commands/update_project.rb @@ -17,6 +17,14 @@ module Compass 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 on sass's debuging information") do + self.options[:debug_info]= false + end super end end @@ -56,6 +64,10 @@ module Compass compiler_opts.merge!(options) compiler_opts[:sass_files] = explicit_sass_files compiler_opts[:cache_location] = determine_cache_location + if options.include?(:debug_info) && options[:debug_info] + compiler_opts[:sass][:debug_info] = options.delete(:debug_info) + end + puts compiler_opts.inspect compiler_opts end