2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

FHEMWEB: noArg additions

git-svn-id: https://svn.fhem.de/fhem/trunk@3733 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2013-08-18 10:27:35 +00:00
parent ecd17b3c42
commit 923bbefb24

View File

@ -2076,7 +2076,7 @@ FW_Get($@)
"gplot directory: $FW_gplotdir";
} else {
return "Unknown argument $arg choose one of icon pathlist";
return "Unknown argument $arg choose one of icon pathlist:noArg";
}
}
@ -2090,7 +2090,8 @@ FW_Set($@)
my %cmd = ("rereadicons" => 1, "clearSvgCache" => 1);
return "no set value specified" if(@a < 2);
return ("Unknown argument $a[1], choose one of ".join(" ", sort keys %cmd))
return ("Unknown argument $a[1], choose one of ".
join(" ", map { "$_:noArg" } sort keys %cmd))
if(!$cmd{$a[1]});
if($a[1] eq "rereadicons") {