The `sass-convert` executable.
Processes the options set by the command-line arguments, and runs the CSS compiler appropriately.
# File lib/sass/exec/sass_convert.rb, line 36 def process_result require 'sass' if @options[:recursive] process_directory return end super input = @options[:input] if File.directory?(input) raise "Error: '#{input.path}' is a directory (did you mean to use --recursive?)" end output = @options[:output] output = input if @options[:in_place] process_file(input, output) end
Tells optparse how to parse the arguments.
@param opts [OptionParser]
# File lib/sass/exec/sass_convert.rb, line 18 def set_opts(opts) opts.banner = Usage: sass-convert [options] [INPUT] [OUTPUT]Description: Converts between CSS, indented syntax, and SCSS files. For example, this can convert from the indented syntax to SCSS, or from CSS to SCSS (adding appropriate nesting). common_options(opts) style(opts) input_and_output(opts) miscellaneous(opts) end
Generated with the Darkfish Rdoc Generator 2.