From ba630e8ad5db8066a999c564aa9ac17058595d00 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Tue, 2 Feb 2021 08:57:47 +0100 Subject: [PATCH] Make descriptions to -shelp available so people find threads Fixes #511 --- htop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htop.c b/htop.c index 20bd9e7b..51f2f4e3 100644 --- a/htop.c +++ b/htop.c @@ -156,7 +156,8 @@ static CommandLineSettings parseArguments(int argc, char** argv) { if (String_eq(optarg, "help")) { for (int j = 1; j < LAST_PROCESSFIELD; j++) { const char* name = Process_fields[j].name; - if (name) printf ("%s\n", name); + const char* description = Process_fields[j].description; + if (name) printf("%19s %s\n", name, description); } exit(0); }