help-for

leiningen.help

  • (help-for task)
Help for a task is stored in its docstring, or if that's not present
in its namespace.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source leiningen/help.clj:13 top

(defn help-for
  "Help for a task is stored in its docstring, or if that's not present
  in its namespace."
  [task]
  (let [task-ns (doto (symbol (str "leiningen." task)) require)
        task (ns-resolve task-ns (symbol task))]
    (str "Arguments: " (pr-str (get-arglists task)) "\n"
         (or (:doc (meta task))
             (:doc (meta (find-ns task-ns)))))))
Vars in leiningen.help/help-for: defn find-ns let meta or pr-str str
Used in 0 other vars

Comments top

No comments for help-for. Log in to add a comment.