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

  (assoc factset "certname" hostname))

(def supported-cli-options
  [["-c" "--config CONFIG" "Path to config.ini or conf.d directory (required)"]
   ["-F" "--facts FACTS" "Path to a directory containing sample JSON facts (files must end with .json)"]
   ["-C" "--catalogs CATALOGS" "Path to a directory containing sample JSON catalogs (files must end with .json)"]
   ["-R" "--reports REPORTS" "Path to a directory containing sample JSON reports (files must end with .json)"]

(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]
