Fix --sort-key=help

This commit is contained in:
Hisham Muhammad 2011-09-08 04:47:48 +00:00
parent bb3e773c49
commit d07b043ee0

2
htop.c
View File

@ -295,7 +295,7 @@ int main(int argc, char** argv) {
printVersionFlag();
break;
case 's':
if (strcmp(optarg, "help")) {
if (strcmp(optarg, "help") == 0) {
for (int j = 1; j < LAST_PROCESSFIELD; j++)
printf ("%s\n", Process_fieldNames[j]);
exit(0);