From ccf0dfa19ab055f83c082f35a0535a5903c3d2e8 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Fri, 20 Feb 2009 14:38:33 -0800 Subject: [PATCH] Rename the --source and --target command line options to --sass-dir and --css-dir respectively to match the configuration file syntax. --- lib/compass/commands/update_project.rb | 2 +- lib/compass/exec.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/compass/commands/update_project.rb b/lib/compass/commands/update_project.rb index b9906fbe..adddf2bf 100644 --- a/lib/compass/commands/update_project.rb +++ b/lib/compass/commands/update_project.rb @@ -35,7 +35,7 @@ module Compass # The subdirectory where the sass source is kept. def project_src_subdirectory - Compass.configuration.sass_dir ||= options[:src_dir] || "src" + Compass.configuration.sass_dir ||= options[:sass_dir] || "src" end # The subdirectory where the css output is kept. diff --git a/lib/compass/exec.rb b/lib/compass/exec.rb index 701d72bb..9347a3f4 100644 --- a/lib/compass/exec.rb +++ b/lib/compass/exec.rb @@ -101,11 +101,11 @@ END self.options[:command] = :watch_project end - opts.on('--source SRC_DIR', "The source directory (where you keep your sass stylesheets).") do |src_dir| - self.options[:src_dir] = src_dir + opts.on('--sass-dir SRC_DIR', "The source directory where you keep your sass stylesheets.") do |sass_dir| + self.options[:sass_dir] = sass_dir end - opts.on('--target CSS_DIR', "The target directory (where you keep your css stylesheets).") do |css_dir| + opts.on('--css-dir CSS_DIR', "The target directory where you keep your css stylesheets.") do |css_dir| self.options[:css_dir] = css_dir end