summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJosé Expósito <jose.exposito89@gmail.com>2022-10-10 08:27:05 +0200
committerJosé Expósito <jose.exposito89@gmail.com>2022-10-10 08:27:05 +0200
commit9c789cc25408d36833768c762ae51eedbd7d09c9 (patch)
treef35a4c0d9b562e7425af18d786341953c799762b /tools
parente9a1999a7f84521ce91cdb19d9ed8a8adea0b0a9 (diff)
tools: hide debug-gui help when building with -Ddebug-gui=false
Some distributions, like Fedora, compile libinput with the debug-gui option set to false. Running "libinput debug-gui" indicates that the program is not installed; however, the help message suggests that the command is available. Hide debug-gui from the help message when it is not included. Fix https://gitlab.freedesktop.org/libinput/libinput/-/issues/480 Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/libinput-tool.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/libinput-tool.c b/tools/libinput-tool.c
index d6192405..a1140277 100644
--- a/tools/libinput-tool.c
+++ b/tools/libinput-tool.c
@@ -46,9 +46,11 @@ usage(void)
" debug-events\n"
" Print events to stdout\n"
"\n"
+#if HAVE_DEBUG_GUI
" debug-gui\n"
" Display a simple GUI to visualize libinput's events.\n"
"\n"
+#endif
" measure <feature>\n"
" Measure various device properties. See the man page for more info\n"
"\n"