Move the --style definition for haml to the Haml class.
This commit is contained in:
parent
9e03fa109b
commit
61bd42f6b8
|
@ -144,11 +144,6 @@ END
|
|||
exit
|
||||
end
|
||||
|
||||
opts.on('-t', '--style NAME',
|
||||
'Output style. Can be indented (default) or ugly.') do |name|
|
||||
@options[:for_engine][:ugly] = true if name.to_sym == :ugly
|
||||
end
|
||||
|
||||
opts.on('-c', '--check', "Just check syntax, don't evaluate.") do
|
||||
@options[:check_syntax] = true
|
||||
@options[:output] = StringIO.new
|
||||
|
@ -211,6 +206,15 @@ END
|
|||
@name = "Haml"
|
||||
end
|
||||
|
||||
def set_opts(opts)
|
||||
super
|
||||
|
||||
opts.on('-t', '--style NAME',
|
||||
'Output style. Can be indented (default) or ugly.') do |name|
|
||||
@options[:for_engine][:ugly] = true if name.to_sym == :ugly
|
||||
end
|
||||
end
|
||||
|
||||
def process_result
|
||||
super
|
||||
input = @options[:input]
|
||||
|
|
Loading…
Reference in New Issue