Make descriptions to -shelp available so people find threads

Fixes #511
This commit is contained in:
Daniel Lange 2021-02-02 08:57:47 +01:00 committed by BenBE
parent ef87877826
commit ba630e8ad5

3
htop.c
View File

@ -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);
}