lib/sass/exec/sass_convert.rb in sass-3.4.20 vs lib/sass/exec/sass_convert.rb in sass-3.4.21

- old
+ new

@@ -106,14 +106,15 @@ opts.on('--dasherize', 'Convert underscores to dashes.') do @options[:for_tree][:dasherize] = true end - opts.on('--indent NUM', + opts.on( + '--indent NUM', 'How many spaces to use for each level of indentation. Defaults to 2.', - '"t" means use hard tabs.') do |indent| - + '"t" means use hard tabs.' + ) do |indent| if indent == 't' @options[:for_tree][:indent] = "\t" else @options[:for_tree][:indent] = " " * indent.to_i end @@ -160,10 +161,11 @@ @options[:trace] = true end end def process_directory - unless @options[:input] = @args.shift + @options[:input] = @args.shift + unless @options[:input] raise "Error: directory required when using --recursive." end output = @options[:output] = @args.shift raise "Error: --from required when using --recursive." unless @options[:from]