From ae7134ce3ca86fd71f4f6fe702a26b9d0f4ba32b Mon Sep 17 00:00:00 2001 From: Simon Brooke Date: Thu, 20 Sep 2018 13:31:21 +0100 Subject: [PATCH] #1: Provided sensible defaults for all configuration parameters. `:verbosity` was the one whose lack was causing the null pointer exception. --- src/leiningen/adl.clj | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/leiningen/adl.clj b/src/leiningen/adl.clj index 5bab134..1b84a01 100644 --- a/src/leiningen/adl.clj +++ b/src/leiningen/adl.clj @@ -35,8 +35,15 @@ argument, in which case that file will be used in preference to any specified in the `project.clj`." [project & args] - (let [c (:adl project) - config {:options (merge {:path "."} c) + (let [c (merge + ;; defaults + {:abstract-key-name-convention "id" + :help false + :locale (or (java.util.Locale/getDefault) "en_GB.UTF-8") + :path "." + :verbosity 0} + (:adl project)) + config {:options c :arguments (cond (not (empty? args)) args (not (nil? (:adl-file c))) (:adl-file c)