1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

[Sass] Support foo:bar notation outside --update and --watch.

This commit is contained in:
Nathan Weizenbaum 2010-01-23 17:14:38 -08:00
parent 704e5fa2cd
commit a780fb4782

View file

@ -254,6 +254,14 @@ END
# Processes the options set by the command-line arguments,
# and runs the Sass compiler appropriately.
def process_result
if @args.first.include?(':')
if @args.size == 1
@args = @args.first.split(':', 2)
else
@options[:update] = true
end
end
return interactive if @options[:interactive]
return watch_or_update if @options[:watch] || @options[:update]
super