From 0750ff7e76d845a70749cc00fa25dbe98a7147a1 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Fri, 4 Sep 2020 09:49:30 +1000 Subject: [PATCH] Fix regression in -u optional-argument handling Resolves https://github.com/htop-dev/htop/issues/91 --- htop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htop.c b/htop.c index bbf3a911..37727d00 100644 --- a/htop.c +++ b/htop.c @@ -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':