mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
98_help.pm: support ModuleName to find help text
git-svn-id: https://svn.fhem.de/fhem/trunk@8141 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
219defc0c5
commit
0428d4184e
@ -1,4 +1,4 @@
|
||||
# $Id$
|
||||
# $Id: 98_help.pm 8133 2015-03-02 14:31:53Z betateilchen $
|
||||
#
|
||||
package main;
|
||||
use strict;
|
||||
@ -37,6 +37,8 @@ sub CommandHelp {
|
||||
my %mods;
|
||||
my @modDir = ("$modPath/FHEM");
|
||||
|
||||
$mod = $cmds{$mod}{ModuleName} if defined($cmds{$mod}{ModuleName});
|
||||
|
||||
foreach my $modDir (@modDir) {
|
||||
eval { opendir(DH, $modDir); }; # || die "Cant open $modDir: $!\n";
|
||||
while(my $l = readdir DH) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user