Skip to content

Commit

Permalink
Merge branch 'hishamhm-pull-1011'
Browse files Browse the repository at this point in the history
  • Loading branch information
natoscott committed Aug 20, 2020
2 parents 9aa8168 + 832e77c commit cca07e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions htop.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ static CommandLineSettings parseArguments(int argc, char** argv) {
flags.sortKey = ColumnsPanel_fieldNameToIndex(optarg);
if (flags.sortKey == -1) {
fprintf(stderr, "Error: invalid column \"%s\".\n", optarg);
exit(1);
}
break;
case 'd':
Expand All @@ -124,6 +125,7 @@ static CommandLineSettings parseArguments(int argc, char** argv) {
if (flags.delay > 100) flags.delay = 100;
} else {
fprintf(stderr, "Error: invalid delay value \"%s\".\n", optarg);
exit(1);
}
break;
case 'u':
Expand All @@ -139,6 +141,7 @@ static CommandLineSettings parseArguments(int argc, char** argv) {

if (!Action_setUserOnly(optarg, &(flags.userId))) {
fprintf(stderr, "Error: invalid user \"%s\".\n", optarg);
exit(1);
}
break;
case 'C':
Expand Down

0 comments on commit cca07e9

Please sign in to comment.