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