Fix regression in -u optional-argument handling

Resolves https://github.com/htop-dev/htop/issues/91
This commit is contained in:
Nathan Scott 2020-09-04 09:49:30 +10:00
parent 7734dfe55d
commit 0750ff7e76

2
htop.c
View File

@ -98,7 +98,7 @@ static CommandLineSettings parseArguments(int argc, char** argv) {
int opt, opti=0;
/* Parse arguments */
while ((opt = getopt_long(argc, argv, "hvmCs:td:u:Up:", long_opts, &opti))) {
while ((opt = getopt_long(argc, argv, "hvmCs:td:u::Up:", long_opts, &opti))) {
if (opt == EOF) break;
switch (opt) {
case 'h':