Commit d07b043e authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

Fix --sort-key=help

parent bb3e773c
...@@ -295,7 +295,7 @@ int main(int argc, char** argv) { ...@@ -295,7 +295,7 @@ int main(int argc, char** argv) {
printVersionFlag(); printVersionFlag();
break; break;
case 's': case 's':
if (strcmp(optarg, "help")) { if (strcmp(optarg, "help") == 0) {
for (int j = 1; j < LAST_PROCESSFIELD; j++) for (int j = 1; j < LAST_PROCESSFIELD; j++)
printf ("%s\n", Process_fieldNames[j]); printf ("%s\n", Process_fieldNames[j]);
exit(0); exit(0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment