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:
parent
6abe53b917
commit
57e8a07fb2
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ require 'thor'
|
||||||
|
|
||||||
module Hamlit
|
module Hamlit
|
||||||
class CLI < Thor
|
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'
|
desc 'render HAML', 'Render haml template'
|
||||||
def render(file)
|
def render(file)
|
||||||
|
@ -34,7 +34,7 @@ module Hamlit
|
||||||
end
|
end
|
||||||
|
|
||||||
def haml_options
|
def haml_options
|
||||||
{ ugly: options['style'] != 'pretty' }
|
{ ugly: options['style'] == 'ugly' }
|
||||||
end
|
end
|
||||||
|
|
||||||
# Flexible default_task, compatible with haml's CLI
|
# Flexible default_task, compatible with haml's CLI
|
||||||
|
|
Loading…
Add table
Reference in a new issue