summaryrefslogtreecommitdiffstats
path: root/htop.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2021-02-02 08:57:47 +0100
committerBenBE <BenBE@geshi.org>2021-02-02 10:08:59 +0100
commitba630e8ad5db8066a999c564aa9ac17058595d00 (patch)
treea693a6cfa180a22669aff15a921413248ca75e68 /htop.c
parentef878778264ccf0101ea6350886707b387d8b0e1 (diff)
Make descriptions to -shelp available so people find threads
Fixes #511
Diffstat (limited to 'htop.c')
-rw-r--r--htop.c3
1 files changed, 2 insertions, 1 deletions
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);
}

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