Signed-off-by: Sean Young <[email protected]>
---
 utils/keytable/ir-keytable.1.in | 15 +++++++++------
 utils/keytable/keytable.c       |  6 +++---
 2 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/utils/keytable/ir-keytable.1.in b/utils/keytable/ir-keytable.1.in
index c0844945..9a354be4 100644
--- a/utils/keytable/ir-keytable.1.in
+++ b/utils/keytable/ir-keytable.1.in
@@ -57,8 +57,8 @@ test if the rc device is generating events
 \fB\-v\fR, \fB\-\-verbose\fR
 Enables debug messages.
 .TP
-\fB\-w\fR, \fB\-\-write\fR=\fITABLE\fR
-Reads the protocols and scancode to keycode mapping from the \fITABLE\fR file,
+\fB\-w\fR, \fB\-\-write\fR=\fIKEYMAP\fR
+Reads the protocols and scancode to keycode mapping from the \fIKEYMAP\fR file,
 and enables those on the rc device.
 .TP
 \fB\-?\fR, \fB\-\-help\fR
@@ -77,8 +77,9 @@ for any corresponding short options. Options can be combined 
together.
 the /dev/input/event* device to control
 .IP \fISYSDEV\fR
 the rc class as found at /sys/class/rc
-.IP \fITABLE\fR
-a toml file with a list of protocols and scancode to keycode mappings.
+.IP \fIKEYMAP\fR
+a toml keymap file with a list of protocols and scancodes to keycode mappings.
+The format is described in rc_keymap(5).
 .IP \fISCANKEY\fR
 a set of scancode1=keycode1,scancode2=keycode2.. value pairs
 .IP \fIPROTOCOL\fR
@@ -112,7 +113,8 @@ To append more codes to the existing table:
 .br
        \fBir\-keytable \-w /etc/rc_keymaps/nec_terratec_cinergy_xs.toml\fR
 .PP
-To read the current keytable, on the second remote controller:
+To read the current scancode to keycode mapping on the second remote 
controller:
+.br
        \fBir\-keytable \-s rc1 \-r\fR
 .PP
 To enable NEC protocol and load a BPF protocol, with a parameter for the BPF 
protocol:
@@ -135,5 +137,6 @@ License GPLv2: GNU GPL version 2 
<http://gnu.org/licenses/gpl.html>.
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.
 .SH SEE ALSO
-rc_keymap(5).
+The keymap format is described in rc_keymap(5).
+
 To transmit IR or receive raw IR, see ir\-ctl(1).
diff --git a/utils/keytable/keytable.c b/utils/keytable/keytable.c
index 5be2274a..b27ceb98 100644
--- a/utils/keytable/keytable.c
+++ b/utils/keytable/keytable.c
@@ -232,10 +232,10 @@ static const char doc[] = N_(
        "\nOn the options below, the arguments are:\n"
        "  DEV       - the /dev/input/event* device to control\n"
        "  SYSDEV    - the ir class as found at /sys/class/rc\n"
-       "  TABLE     - a file with a set of scancode=keycode value pairs\n"
+       "  KEYMAP    - a keymap file with protocols and scancode to keycode 
mappings\n"
        "  SCANKEY   - a set of scancode1=keycode1,scancode2=keycode2.. value 
pairs\n"
        "  PROTOCOL  - protocol name (nec, rc-5, rc-6, jvc, sony, sanyo, 
rc-5-sz, lirc,\n"
-       "              sharp, mce_kbd, xmp, imon, rc_mm, other, all) to be 
enabled,\n"
+       "              sharp, mce_kbd, xmp, imon, rc-mm, other, all) to be 
enabled,\n"
        "              or a bpf protocol name or file\n"
        "  DELAY     - Delay before repeating a keystroke\n"
        "  PERIOD    - Period to repeat a keystroke\n"
@@ -251,7 +251,7 @@ static const struct argp_option options[] = {
        {"test",        't',    0,              0,      N_("test if IR is 
generating events"), 0},
        {"device",      'd',    N_("DEV"),      0,      N_("ir device to 
control"), 0},
        {"read",        'r',    0,              0,      N_("reads the current 
scancode/keycode table"), 0},
-       {"write",       'w',    N_("TABLE"),    0,      N_("write (adds) the 
scancodes to the device scancode/keycode table from an specified file"), 0},
+       {"write",       'w',    N_("KEYMAP"),   0,      N_("write (adds) the 
keymap from the specified file"), 0},
        {"set-key",     'k',    N_("SCANKEY"),  0,      N_("Change scan/key 
pairs"), 0},
        {"protocol",    'p',    N_("PROTOCOL"), 0,      N_("Protocol to enable 
(the other ones will be disabled). To enable more than one, use the option more 
than one time"), 0},
        {"parameter",   'e',    N_("PARAMETER"), 0,     N_("Set a parameter for 
the protocol decoder")},
-- 
2.20.1

Reply via email to