From e6b777477448c91586a097b21c8ad1fb20d83a8d Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sat, 25 Apr 2009 11:57:18 -0700 Subject: [PATCH] [Command line] Add a command line option that prints out where compass is installed. --- lib/compass/exec.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/compass/exec.rb b/lib/compass/exec.rb index b4a1fdf7..5d156687 100644 --- a/lib/compass/exec.rb +++ b/lib/compass/exec.rb @@ -163,11 +163,15 @@ END end opts.on('--imports', :NONE, 'Emit an import path suitable for use with the Sass command-line tool.') do - #XXX cross platform support? print ::Compass::Frameworks::ALL.map{|f| "-I #{f.stylesheets_directory}"}.join(' ') exit end + opts.on('--install-dir', :NONE, 'Emit the location where compass is installed.') do + puts ::Compass.base_directory + exit + end + opts.on('--validate', :NONE, 'Validate your project\'s compiled css. Requires Java.') do self.options[:command] = :validate_project end