Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Dec 19, 2023
1 parent 2dad2e9 commit a6e9df0
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/babashka/cli.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -627,17 +627,6 @@
(case error
(:no-match :input-exhausted)
(error-fn {:cause error})
(when-let [f (:error-fn opts)]
(let [println (fn [& args]
#?(:cljs (doseq [a args]
(*print-err-fn* a)
(*print-err-fn* "\n"))
:clj (binding [*out* *err*]
(apply println args))))]
(println (str "No matching command" (when wrong-input
(str ": " wrong-input))))
(println "Available commands:")
(println (str/join "\n" available-commands))))
nil ((:fn cmd-info) (dissoc res :cmd-info))))))

(defn dispatch
Expand Down

0 comments on commit a6e9df0

Please sign in to comment.