mirror of https://github.com/xzeldon/htop.git
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")) {
|
if (String_eq(optarg, "help")) {
|
||||||
for (int j = 1; j < LAST_PROCESSFIELD; j++) {
|
for (int j = 1; j < LAST_PROCESSFIELD; j++) {
|
||||||
const char* name = Process_fields[j].name;
|
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);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue