This commit is contained in:
@@ -160,3 +160,10 @@
|
||||
|
||||
(show-and-save-output options))))
|
||||
|
||||
(defn cli-main
|
||||
[args]
|
||||
(let [{:keys [options arguments action-type exit-message ok?]} (validate-args args)]
|
||||
(if exit-message
|
||||
(exit exit-message ok?)
|
||||
(actions options arguments action-type))))
|
||||
|
||||
|
||||
@@ -5,8 +5,5 @@
|
||||
|
||||
(defn -main
|
||||
[& args]
|
||||
(let [{:keys [options arguments action-type exit-message ok?]} (cli/validate-args args)]
|
||||
(if exit-message
|
||||
(cli/exit exit-message ok?)
|
||||
(cli/actions options arguments action-type))))
|
||||
(cli/cli-main args))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user