tools: switch interactive-evdev to getopt_long
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 13 Jul 2020 02:13:23 +0000 (12:13 +1000)
committerRan Benita <ran@unusedvar.com>
Sat, 25 Jul 2020 08:05:14 +0000 (11:05 +0300)
commitab3be693b39322849b5ecc4aa95827cbb8fe7414
tree409e03638bccd47ff261970caa901a5bb163eb42
parent714182066d086baf848c22258136c8dd94a4edca
tools: switch interactive-evdev to getopt_long

Requiring long options for this tool means it's immediately obvious what an
invocation does, compare e.g.

  xkbcli interactive-evdev -gcd

to the equivalent:

  xkbcli interactive-evdev --consumed-mode=gtk --enalbe-compose --report-state-changes

This drops the evdev offset argument - that offset should never be anything
other than 8, having this as argument here is more likely to confuse or
produce misleading debugging logs.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
meson.build
tools/interactive-evdev.c
tools/xkbcli-interactive-evdev.1.ronn