   [& args]
   (let [options         (validate-cli! args)
         config          (-> (:config options)
-                            (ks/inis-to-map))
+                            config/load-config)
 
         {:keys [catalogs reports facts]} (load-data-from-options options)
         nhosts          (:numhosts options)

  (:require [clojure.tools.logging :as log]
            [puppetlabs.puppetdb.catalog.utils :as catutils]
            [puppetlabs.trapperkeeper.logging :as logutils]
            [puppetlabs.puppetdb.cheshire :as json]
            [fs.core :as fs]
            [clojure.java.io :as io]

(defn activate-logging!
  [options]
  (-> (:config options)
      config/load-config
      (get-in [:global :logging-config])
      logutils/configure-logging!))

(defn validate-options
  [options action-on-error-fn]
