```ruby
require 'faml'
require 'thor'

module Faml
  class CLI < Thor
    package_name 'faml'

    desc 'render FILE', 'Render haml template'
    def render(file)
      code = compile_file(file)
      puts instance_eval(code, file)
    end

    desc 'compile FILE', 'Compile haml template'
    def compile(file)
      puts compile_file(file)
    end

    desc 'parse FILE', 'Render faml AST'
    def parse(file)
      require 'pp'
      pp parse_file(file)
    end

    desc 'temple FILE', 'Render temple AST'
    def temple(file)
      require 'pp'
      pp Faml::Compiler.new(filename: file).call(parse_file(file))
    end

    desc 'version', 'Print version'
    option :numeric, type: :boolean, default: false, desc: 'Print version number only'
    def version
      if options[:numeric]
        puts VERSION
      else
        puts "faml #{VERSION}"
      end
    end

    private

    def compile_file(file)
      Faml::Engine.new(filename: file).call(File.read(file))
    end

    def parse_file(file)
      Faml::Parser.new(filename: file).call(File.read(file))
    end
  end
end
```

Add --format option to CLI
user
```ruby
require 'faml'
require 'thor'

module Faml
  class CLI < Thor
    package_name 'faml'

    desc 'render FILE', 'Render haml template'
    option :format, type: :string, default: :html, desc: 'HTML format'
    def render(file)
      code = compile_file(file, format: options[:format].to_sym)
      puts instance_eval(code, file)
    end

    desc 'compile FILE', 'Compile haml template'
    option :format, type: :string, default: :html, desc: 'HTML format'
    def compile(file)
      puts compile_file(file, format: options[:format].to_sym)
    end

    desc 'parse FILE', 'Render faml AST'
    def parse(file)
      require 'pp'
      pp parse_file(file)
    end

    desc 'temple FILE', 'Render temple AST'
    option :format, type: :string, default: :html, desc: 'HTML format'
    def temple(file)
      require 'pp'
      pp Faml::Compiler.new(filename: file, format: options[:format].to_sym).call(parse_file(file))
    end

    desc 'version', 'Print version'
    option :numeric, type: :boolean, default: false, desc: 'Print version number only'
    def version
      if options[:numeric]
        puts VERSION
      else
        puts "faml #{VERSION}"
      end
    end

    private

    def compile_file(file, opts)
      Faml::Engine.new(opts.merge(filename: file)).call(File.read(file))
    end

    def parse_file(file)
      Faml::Parser.new(filename: file).call(File.read(file))
    end
  end
end
```
assistant