Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a -I option to the global options so that you can add sass import…

… paths via the CLI. Closes #375.
  • Loading branch information...
commit ba677ad5d29bc40ab5dadb879aaacf53aa97fa0a 1 parent 7ba0d44
@chriseppstein chriseppstein authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/compass/exec/global_options_parser.rb
View
7 lib/compass/exec/global_options_parser.rb
@@ -26,6 +26,13 @@ def set_global_options(opts)
::Compass.configuration.discover Pathname.new(frameworks_dir).realpath
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
self.options[:quiet] = true
end
Please sign in to comment.
Something went wrong with that request. Please try again.