Skip to content

Commit

Permalink
Release 0.7.2, fix default options merging
Browse files Browse the repository at this point in the history
  • Loading branch information
Deraen committed Oct 3, 2019
1 parent 22f97c4 commit a902fef
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,9 @@
## 0.7.2 (2019-10-03)

**[compare](https://github.com/Deraen/less4clj/compare/0.7.1...0.7.2)**

- Fix CLI option defaults overriding config file options

## 0.7.1 (2019-08-28)

**[compare](https://github.com/Deraen/less4clj/compare/0.7.0...0.7.1)**
Expand Down
2 changes: 1 addition & 1 deletion build.boot
@@ -1,4 +1,4 @@
(def +version+ "0.7.1")
(def +version+ "0.7.2")

(set-env!
:resource-paths #{"src"}
Expand Down
2 changes: 1 addition & 1 deletion src/less4clj/main.clj
Expand Up @@ -44,7 +44,7 @@ Options:
Config file options are merged over the default options, before CLI options."))

(defn -main [& args]
(let [{:keys [options summary errors]} (cli/parse-opts args cli-opts)
(let [{:keys [options summary errors]} (cli/parse-opts args cli-opts :no-defaults true)
{:keys [help]} options
config-file (if (:config options)
(edn/read-string (slurp (io/file (:config options)))))
Expand Down

0 comments on commit a902fef

Please sign in to comment.