From 2a0c71f3e28e11b61e98b5975116c0809bc49e34 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 2 May 2010 13:07:11 +0200 Subject: help: implemented /help [MODULE ARGS...] --- modules/help | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'modules') 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 -- cgit v1.2.3