[Command line] Add a command line option that prints out where compass is installed.
This commit is contained in:
parent
4a2b4c538e
commit
e6b7774774
@ -163,11 +163,15 @@ END
|
|||||||
end
|
end
|
||||||
|
|
||||||
opts.on('--imports', :NONE, 'Emit an import path suitable for use with the Sass command-line tool.') do
|
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(' ')
|
print ::Compass::Frameworks::ALL.map{|f| "-I #{f.stylesheets_directory}"}.join(' ')
|
||||||
exit
|
exit
|
||||||
end
|
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
|
opts.on('--validate', :NONE, 'Validate your project\'s compiled css. Requires Java.') do
|
||||||
self.options[:command] = :validate_project
|
self.options[:command] = :validate_project
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user