From 76a12b4ea2025fc51f19e09f2dbbe21fd2555195 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sat, 8 May 2010 21:46:28 -0700 Subject: [PATCH] [CLI] Add the --syntax option to the deprecated CLI for consistency. Closes #114. --- lib/compass/exec/switch_ui.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/compass/exec/switch_ui.rb b/lib/compass/exec/switch_ui.rb index 818946d5..77552d45 100644 --- a/lib/compass/exec/switch_ui.rb +++ b/lib/compass/exec/switch_ui.rb @@ -120,6 +120,10 @@ END self.options[:pattern_name] = name end + opts.on("-x", "--syntax SYNTAX", [:sass, :scss], "Specify the syntax to use when generating stylesheets.", "One of sass or scss. Defaults to scss.") do |syntax| + self.options[:preferred_syntax] = syntax + end + opts.on('--rails', "Sets the app type to a rails project (same as --app rails).") do self.options[:project_type] = :rails end