From 6a7b3fdc7dde654dbafd873d19b38369aba3b1bb Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Thu, 7 Apr 2022 11:52:22 +0200 Subject: Do not show help for -M / --no-mouse if HAVE_GETMOUSE is undefined --- CommandLine.c | 2 ++ 1 file changed, 2 insertions(+) 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" -- cgit v1.2.3