Skip to content

Instantly share code, notes, and snippets.

@jdewind
Created July 10, 2012 00:43
Show Gist options
  • Save jdewind/3080204 to your computer and use it in GitHub Desktop.
Save jdewind/3080204 to your computer and use it in GitHub Desktop.
(def config-file (ref nil))
(def data (ref []))
(defn -main [& args]
(let [{:keys [config] inputs}] (cli args ["--config" "Config file"])
(dosync (ref-set config-file config))
(println @config-file)
(dosync (ref-set data [1 2 3]))
(println @data)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment