Command line option to emit the compass import paths suitable for use in a PATH variable.

This commit is contained in:
Chris Eppstein 2008-10-21 08:27:04 -07:00
parent 11def38264
commit f62b5589a7

View File

@ -105,6 +105,12 @@ END
self.options[:force] = true self.options[:force] = true
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| f.stylesheets_directory}.join(File::PATH_SEPARATOR)
exit
end
opts.on_tail("-?", "-h", "--help", "Show this message") do opts.on_tail("-?", "-h", "--help", "Show this message") do
puts opts puts opts
exit exit