[Command line] Add a command line option that prints out where compass is installed.

This commit is contained in:
Chris Eppstein 2009-04-25 11:57:18 -07:00
parent 4a2b4c538e
commit e6b7774774

View File

@ -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