def run_cli(task_args)
      cli_args = parse_args
      logger = quiet ? HamlLint::Logger.silent : HamlLint::Logger.new(STDOUT)
      result = HamlLint::CLI.new(logger).run(Array(cli_args) + files_to_lint(task_args))

      fail "#{HamlLint::APP_NAME} failed with exit code #{result}" unless result == 0
    end
def run_cli(task_args)
      cli_args = parse_args
      logger = quiet ? HamlLint::Logger.silent : HamlLint::Logger.new(STDOUT)
      result = HamlLint::CLI.new(logger).run(Array(cli_args) + files_to_lint(task_args))

      fail "#{HamlLint::APP_NAME} failed with exit code #{result}" unless result == 0
    end
Executes the CLI given the specified task arguments.

 @param task_args [Rake::TaskArguments]