We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb0f82b commit 2f0813bCopy full SHA for 2f0813b
1 file changed
src/mobdap/main.clj
@@ -14,7 +14,8 @@
14
15
(def cli-options
16
[["-v" "--version" "Show the installed version of mobdap"]
17
- ["-h" "--help" "Show the help text"]])
+ ["-h" "--help" "Show the help text"]
18
+ [nil "--debug" "Show debug logs"]])
19
20
(defn- print-usage [result]
21
(println "Usage:")
@@ -43,8 +44,11 @@
43
44
:else
45
(do
46
(log/set-config!
- {:level :info
47
+ {:level (if (get-in res [:options :debug])
48
+ :debug
49
+ :info)
50
:appenders {:spit (appenders/spit-appender {:fname (str (io/file (cache-dir) "mobdap.log"))})}})
51
(log/info "Started mobdap with arguments:" args)
52
+ (log/debug "CLI Options" (dissoc res :summary))
53
(handler/run)))))
54
0 commit comments