diff --git a/src/core.clj b/src/core.clj index 897d272..7742cb7 100644 --- a/src/core.clj +++ b/src/core.clj @@ -74,9 +74,9 @@ "Run the CLI interface." [& args] (let [{:keys [options errors summary]} (parse-opts args cli-options) - errors (if-not (or (contains? options :csv) (contains? options :demo)) - (conj errors "Please provide a CSV file with \"--csv FILE\" or try \"--demo\"") - errors)] + no-csv-or-demo? (not (or (contains? options :csv) (contains? options :demo))) + errors (cond-> errors + no-csv-or-demo? (conj "Please provide a CSV file with \"--csv FILE\" or try \"--demo\""))] (when (:help options) (println summary) (System/exit 0))