From f87cb0d3139736b0a6837b5cfd12da4137e7699c Mon Sep 17 00:00:00 2001
From: rudolfkoenig <>
Date: Fri, 25 Oct 2019 09:35:24 +0000
Subject: [PATCH] fhem.pl: update command options in help (Forum #104743)
git-svn-id: https://svn.fhem.de/fhem/trunk@20407 2b470e98-0d58-463d-a4d8-8e2adae1ed80
---
fhem/docs/commandref_frame.html | 3 ++-
fhem/docs/commandref_frame_DE.html | 6 ++++--
fhem/fhem.pl | 30 +++++++++++++++++-------------
3 files changed, 23 insertions(+), 16 deletions(-)
diff --git a/fhem/docs/commandref_frame.html b/fhem/docs/commandref_frame.html
index 43a0a5f3e..05ed5becb 100644
--- a/fhem/docs/commandref_frame.html
+++ b/fhem/docs/commandref_frame.html
@@ -692,7 +692,8 @@ The following local attributes are used by a wider range of devices:
attr
- attr [-a|-r] <devspec> <attrname> [<value>]
+ attr [-a] [-r] <devspec> <attrname> [<value>]
+
Set an attribute for a device defined by define.
The value is optional, and is set to 1 if missing.
diff --git a/fhem/docs/commandref_frame_DE.html b/fhem/docs/commandref_frame_DE.html
index ab98cb815..75e59ae9e 100644
--- a/fhem/docs/commandref_frame_DE.html
+++ b/fhem/docs/commandref_frame_DE.html
@@ -704,7 +704,8 @@ Die folgenden lokalen Attribute werden von mehreren Geräten verwendet:
attr
- attr [-a|-r] <devspec> <attrname> [<value>]
+ attr [-a] [-r] <devspec> <attrname> [<value>]
+
Dieser Befehl setzt ein Attribut für ein Gerät welches mit
define
- define [option] <name> <type> <type-specific>
+ define [option] <name> <type> <type-specific>
+
Definiert ein Gerät. Sie müssen Geräte einrichten um sie zu
diff --git a/fhem/fhem.pl b/fhem/fhem.pl
index bf4a002ef..9e3c46134 100755
--- a/fhem/fhem.pl
+++ b/fhem/fhem.pl
@@ -402,33 +402,35 @@ my %ra = (
%cmds = (
"?" => { ReplacedBy => "help" },
"attr" => { Fn=>"CommandAttr",
- Hlp=>" [],set attribute for "},
+ Hlp=>"[-a] [-r] [],".
+ "set attribute for "},
"cancel" => { Fn=>"CommandCancel",
Hlp=>"[ [quiet]],list sleepers, cancel sleeper with " },
"createlog"=> { ModuleName => "autocreate" },
"define" => { Fn=>"CommandDefine",
- Hlp=>" ,define a device" },
+ Hlp=>"[option] ,define a device" },
"defmod" => { Fn=>"CommandDefMod",
- Hlp=>" ,define or modify a device" },
+ Hlp=>"[-temporary] ,".
+ "define or modify a device" },
"deleteattr" => { Fn=>"CommandDeleteAttr",
Hlp=>" [],delete attribute for " },
"deletereading" => { Fn=>"CommandDeleteReading",
- Hlp=>" [],delete user defined reading for ".
+ Hlp=>" [],delete user defined reading for ".
"" },
"delete" => { Fn=>"CommandDelete",
Hlp=>",delete the corresponding definition(s)"},
"displayattr"=> { Fn=>"CommandDisplayAttr",
Hlp=>" [attrname],display attributes" },
"get" => { Fn=>"CommandGet",
- Hlp=>" ,request data from " },
+ Hlp=>" ,request data from " },
"include" => { Fn=>"CommandInclude",
- Hlp=>",read the commands from " },
+ Hlp=>",read the commands from " },
"iowrite" => { Fn=>"CommandIOWrite",
Hlp=>" ,write raw data with iodev" },
"list" => { Fn=>"CommandList",
- Hlp=>"[-r] [devspec],list definitions and status info" },
+ Hlp=>"[-r] [devspec] [value],list definitions and status info" },
"modify" => { Fn=>"CommandModify",
- Hlp=>"device ,modify the definition (e.g. at, notify)" },
+ Hlp=>"device ","modify the definition" },
"quit" => { Fn=>"CommandQuit",
ClientFilter => "telnet",
Hlp=>",end the client session" },
@@ -436,7 +438,7 @@ my %ra = (
ClientFilter => "telnet",
Hlp=>",end the client session" },
"reload" => { Fn=>"CommandReload",
- Hlp=>",reload the given module (e.g. 99_PRIV)" },
+ Hlp=>",reload the given module (e.g. 99_PRIV)" },
"rename" => { Fn=>"CommandRename",
Hlp=>" ,rename a definition" },
"rereadcfg" => { Fn=>"CommandRereadCfg",
@@ -446,22 +448,24 @@ my %ra = (
"save" => { Fn=>"CommandSave",
Hlp=>"[configfile],write the configfile and the statefile" },
"set" => { Fn=>"CommandSet",
- Hlp=>" ,transmit code for " },
+ Hlp=>" ,transmit code for " },
"setreading" => { Fn=>"CommandSetReading",
Hlp=>" ,set reading for " },
"setstate"=> { Fn=>"CommandSetstate",
Hlp=>" ,set the state shown in the command list" },
"setuuid" => { Fn=>"CommandSetuuid", Hlp=>"" },
"setdefaultattr" => { Fn=>"CommandDefaultAttr",
- Hlp=>" ,set attr for following definitions" },
+ Hlp=>"[ []],".
+ "set attr for following definitions" },
"shutdown"=> { Fn=>"CommandShutdown",
Hlp=>"[restart|exitValue],terminate the server" },
"sleep" => { Fn=>"CommandSleep",
- Hlp=>" [] [quiet],sleep for sec, 3 decimal places" },
+ Hlp=>" [] [quiet],".
+ "sleep for sec, 3 decimal places" },
"trigger" => { Fn=>"CommandTrigger",
Hlp=>" ,trigger notify command" },
"update" => {
- Hlp => "[|all|check|force] ".
+ Hlp => "[|all|check|checktime|force] ".
"[http://.../controlfile],update FHEM" },
"updatefhem" => { ReplacedBy => "update" },
"usb" => { ModuleName => "autocreate" },