Fix help task to ignore hooks.

This commit is contained in:
Phil Hagelberg 2010-08-19 20:54:50 -07:00
parent fe2927a9f2
commit 7efb72f963
2 changed files with 2 additions and 2 deletions

View file

@ -145,7 +145,7 @@ else
fi
if ([ "$1" = "repl" ] || [ "$1" = "interactive" ] || [ "$1" = "int" ]) &&
[ -z $INSIDE_EMACS ] && [ $TERM != "dumb" ]; then
[ -z $INSIDE_EMACS ] && [ "$TERM" != "dumb" ]; then
# Use rlwrap if it's available, otherwise fall back to JLine
RLWRAP=`which rlwrap`
if [ $? -eq 1 ]; then

View file

@ -2,7 +2,7 @@
"Display a list of tasks or help for a given task."
(:use [clojure.contrib.find-namespaces :only [find-namespaces-on-classpath]]))
(def tasks (set (filter #(re-find #"^leiningen\.(?!core|util)" (name %))
(def tasks (set (filter #(re-find #"^leiningen\.(?!core|util)[^\.]+$" (name %))
(find-namespaces-on-classpath))))
(defn get-arglists [task]