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

Add a --format switch to the haml executable.

This commit is contained in:
Nathan Weizenbaum 2008-02-29 10:57:41 -08:00
parent 61bd42f6b8
commit 5ac9ec2eb3

View file

@ -213,6 +213,11 @@ END
'Output style. Can be indented (default) or ugly.') do |name| 'Output style. Can be indented (default) or ugly.') do |name|
@options[:for_engine][:ugly] = true if name.to_sym == :ugly @options[:for_engine][:ugly] = true if name.to_sym == :ugly
end end
opts.on('-f', '--format NAME',
'Output format. Can be xhtml (default), html4, or html5.') do |name|
@options[:for_engine][:output] = name.to_sym
end
end end
def process_result def process_result