subtask-help-for expects a map, so let's give it one.

This commit is contained in:
Tobias Crawley 2012-03-07 16:49:30 -05:00
parent efe16d5dee
commit 43bb201e24

View file

@ -30,10 +30,11 @@
(formatted-docstring command docstring padding))))
(defn- get-subtasks-and-docstrings-for [task]
(into {}
(map (fn [subtask]
(let [m (meta subtask)]
[(str (:name m)) (first (.split (:doc m "") "\n"))]))
(:subtasks (meta task))))
(:subtasks (meta task)))))
(defn subtask-help-for
[task-ns task]