mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-24 15:15:44 +00:00
Merge branch 'hishamhm-pull-1011'
This commit is contained in:
commit
cca07e9bc9
3
htop.c
3
htop.c
@ -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':
|
||||
@ -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':
|
||||
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user