summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2022-04-07 11:52:22 +0200
committerDaniel Lange <DLange@git.local>2022-04-07 11:52:22 +0200
commit6a7b3fdc7dde654dbafd873d19b38369aba3b1bb (patch)
treeee8484b50bd412c78b76c651376e38e37478cfb3
parent72c56691ec8b1e0a908e901b60f8bd3744b25aba (diff)
Do not show help for -M / --no-mouse if HAVE_GETMOUSE is undefined
-rw-r--r--CommandLine.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/CommandLine.c b/CommandLine.c
index 4416864b..d7f5f1e3 100644
--- a/CommandLine.c
+++ b/CommandLine.c
@@ -54,7 +54,9 @@ static void printHelpFlag(const char* name) {
"-F --filter=FILTER Show only the commands matching the given filter\n"
"-h --help Print this help screen\n"
"-H --highlight-changes[=DELAY] Highlight new and old processes\n"
+#ifdef HAVE_GETMOUSE
"-M --no-mouse Disable the mouse\n"
+#endif
"-p --pid=PID[,PID,PID...] Show only the given PIDs\n"
" --readonly Disable all system and process changing features\n"
"-s --sort-key=COLUMN Sort by COLUMN in list view (try --sort-key=help for a list)\n"

© 2014-2024 Faster IT GmbH | imprint | privacy policy