mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-25 23:35:45 +00:00
Make descriptions to -shelp available so people find threads
Fixes #511
This commit is contained in:
parent
ef87877826
commit
ba630e8ad5
3
htop.c
3
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user