summaryrefslogtreecommitdiff
path: root/tools/xkbcli.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2020-07-08 13:30:47 +1000
committerRan Benita <ran@unusedvar.com>2020-07-25 11:05:14 +0300
commit29e80e7b7608961a9400eaa10880c4a25e5e3726 (patch)
tree187063f61216485e3517266d9379e15466cfb4a3 /tools/xkbcli.c
parented57fb8b869ba1edd226b55953ace0719fe8e1c1 (diff)
downloadxorg-lib-libxkbcommon-29e80e7b7608961a9400eaa10880c4a25e5e3726.tar.gz
tools: install our tools as xkbcli subcommands
The xkbcli tool usage help is ifdef'd out where the tool isn't built but the man page always includes all tools. Easier that way. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools/xkbcli.c')
-rw-r--r--tools/xkbcli.c33
1 files changed, 32 insertions, 1 deletions
diff --git a/tools/xkbcli.c b/tools/xkbcli.c
index fbab9dd..fe6b6b5 100644
--- a/tools/xkbcli.c
+++ b/tools/xkbcli.c
@@ -37,7 +37,38 @@ usage(void)
"Global options:\n"
" -h, --help ...... show this help and exit\n"
" -V, --version ... show version information and exit\n"
- "\n");
+ "Commands:\n"
+#if HAVE_XKBCLI_LIST
+ " list\n"
+ " List available rules, models, layouts, variants and options\n"
+ "\n"
+#endif
+#if HAVE_XKBCLI_INTERACTIVE_WAYLAND
+ " interactive-wayland\n"
+ " Interactive debugger for XKB maps for wayland\n"
+ "\n"
+#endif
+#if HAVE_XKBCLI_INTERACTIVE_x11
+ " interactive-x11\n"
+ " Interactive debugger for XKB maps for X11\n"
+ "\n"
+#endif
+#if HAVE_XKBCLI_INTERACTIVE_EVDEV
+ " interactive-evdev\n"
+ " Interactive debugger for XKB maps for evdev\n"
+ "\n"
+#endif
+#if HAVE_XKBCLI_COMPILE_KEYMAP
+ " compile-keymap\n"
+ " Compile n XKB keymap\n"
+ "\n"
+#endif
+#if HAVE_XKBCLI_HOW_TO_TYPE
+ " how-to-type\n"
+ " Print key sequences to type a Unicode codepoint\n"
+ "\n"
+#endif
+ );
}
int