diff options
author | Daniel Lange <DLange@git.local> | 2021-02-02 08:57:47 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-02-02 10:08:59 +0100 |
commit | ba630e8ad5db8066a999c564aa9ac17058595d00 (patch) | |
tree | a693a6cfa180a22669aff15a921413248ca75e68 /htop.c | |
parent | ef878778264ccf0101ea6350886707b387d8b0e1 (diff) |
Make descriptions to -shelp available so people find threads
Fixes #511
Diffstat (limited to 'htop.c')
-rw-r--r-- | htop.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } |