From ddd7bc2226927634dc0216554194877fa6f170e1 Mon Sep 17 00:00:00 2001 From: Chouser Date: Fri, 13 Nov 2009 23:17:25 -0500 Subject: command-line: revert 72a13bf Clients have to provide their own --help defaults if that's what they want. --- src/clojure/contrib/command_line.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clojure/contrib/command_line.clj b/src/clojure/contrib/command_line.clj index 8a179c1d..466dd7a7 100644 --- a/src/clojure/contrib/command_line.clj +++ b/src/clojure/contrib/command_line.clj @@ -26,7 +26,7 @@ defaults (into {} (for [[_ {:keys [default sym]}] key-data :when default] [sym default]))] - (loop [[argkey & [argval :as r]] (if (seq args) args ["--help"]) + (loop [[argkey & [argval :as r]] args cmdmap (assoc defaults :cmdspec cmdspec rest-str [])] (if argkey (let [[_ & [keybase]] (re-find #"^--?(.*)" argkey)] -- cgit v1.2.3-18-g5258