[CLI] Add the --syntax option to the deprecated CLI for consistency. Closes #114.

This commit is contained in:
Chris Eppstein 2010-05-08 21:46:28 -07:00
parent 5c1e5776bd
commit 76a12b4ea2

View File

@ -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