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

Change CLI default mode to ugly

This commit is contained in:
Takashi Kokubun 2015-10-24 23:55:45 +09:00
parent 6abe53b917
commit 57e8a07fb2

View file

@ -3,7 +3,7 @@ require 'thor'
module Hamlit
class CLI < Thor
class_option :style, type: :string, aliases: ['-t'], default: 'pretty'
class_option :style, type: :string, aliases: ['-t'], default: 'ugly'
desc 'render HAML', 'Render haml template'
def render(file)
@ -34,7 +34,7 @@ module Hamlit
end
def haml_options
{ ugly: options['style'] != 'pretty' }
{ ugly: options['style'] == 'ugly' }
end
# Flexible default_task, compatible with haml's CLI