Support for passing an import path to the sass command-line.

This commit is contained in:
Chris Eppstein 2008-10-21 09:11:49 -07:00
parent c25d6aef7c
commit 7b1288438f
1 changed files with 4 additions and 0 deletions

View File

@ -168,6 +168,7 @@ END
def initialize(args)
super
@name = "Sass"
@options[:for_engine][:load_paths] = ['.'] + (ENV['SASSPATH'] || '').split(File::PATH_SEPARATOR)
end
def set_opts(opts)
@ -185,6 +186,9 @@ END
'Run an interactive SassScript shell.') do
@options[:interactive] = true
end
opts.on('-I', '--load-path PATH', 'Add a sass import path.') do |path|
@options[:for_engine][:load_paths] << path
end
end
def process_result