diff options
author | root <root@shack.(none)> | 2010-05-02 13:07:11 +0200 |
---|---|---|
committer | root <root@shack.(none)> | 2010-05-02 13:07:11 +0200 |
commit | 2a0c71f3e28e11b61e98b5975116c0809bc49e34 (patch) | |
tree | 147a7afd000d87cfafaac7597e5533661fefabe2 /modules | |
parent | 1247b6d9d9a911982b5eb2841193dbb1cc32c4da (diff) |
help: implemented /help [MODULE ARGS...]
Diffstat (limited to 'modules')
-rwxr-xr-x | modules/help | 11 |
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/$/[m/ s:^([a-z]+) (.+):[35mtype [32m/\1[35m 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 |