summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorroot <root@shack.(none)>2010-05-02 13:07:11 +0200
committerroot <root@shack.(none)>2010-05-02 13:07:11 +0200
commit2a0c71f3e28e11b61e98b5975116c0809bc49e34 (patch)
tree147a7afd000d87cfafaac7597e5533661fefabe2 /modules
parent1247b6d9d9a911982b5eb2841193dbb1cc32c4da (diff)
help: implemented /help [MODULE ARGS...]
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/help11
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/help b/modules/help
index 303af362..48c06686 100755
--- a/modules/help
+++ b/modules/help
@@ -11,5 +11,14 @@ case "$1" in
} | sort | sed -rn '
$s/$//
s:^([a-z]+) (.+):type /\1 to \2:p' ;;
- (*) exit 23 ;;
+ (*)
+ ## call
+ for directory in `echo "$NOISE_PATH" | tr : \ ` ; do
+ for module in "$directory/$1" ; do
+ if test -e $module ; then
+ shift
+ exec $module --help --verbose "$@" 2>&1
+ fi
+ done
+ done
esac