def run(args)
      options = HamlLint::Options.new.parse(args)
      act_on_options(options)
    rescue StandardError => e
      handle_exception(e)
    end
def run(args)
      options = HamlLint::Options.new.parse(args)
      act_on_options(options)
    rescue StandardError => e
      handle_exception(e)
    end
rubocop:disable Metrics/ClassLength
 Create a CLI that outputs to the specified logger.

 @param logger [HamlLint::Logger]
 Parses the given command-line arguments and executes appropriate logic
 based on those arguments.

 @param args [Array<String>] command line arguments
 @return [Integer] exit status code