Add a -I option to the global options so that you can add sass import paths via the CLI. Closes #375.
This commit is contained in:
parent
7ba0d44eaa
commit
ba677ad5d2
@ -26,6 +26,13 @@ module Compass::Exec::GlobalOptionsParser
|
|||||||
::Compass.configuration.discover Pathname.new(frameworks_dir).realpath
|
::Compass.configuration.discover Pathname.new(frameworks_dir).realpath
|
||||||
end
|
end
|
||||||
|
|
||||||
|
opts.on('-I IMPORT_PATH',
|
||||||
|
"Makes files under the IMPORT_PATH folder findable by Sass's @import directive."
|
||||||
|
) do |import_path|
|
||||||
|
require 'pathname'
|
||||||
|
::Compass.configuration.add_import_path Pathname.new(import_path).realpath
|
||||||
|
end
|
||||||
|
|
||||||
opts.on('-q', '--quiet', :NONE, 'Quiet mode.') do
|
opts.on('-q', '--quiet', :NONE, 'Quiet mode.') do
|
||||||
self.options[:quiet] = true
|
self.options[:quiet] = true
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user