From cea147fc56b018266ac3235b82cdaf7d0ba74628 Mon Sep 17 00:00:00 2001 From: hejingxian Date: Fri, 10 Jan 2020 15:36:57 +0800 Subject: [PATCH] prevent version cmd need an argument In order to prevent the version cmd need an argument, the option 'V' can't be followed by ':'. --- irqbalance.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irqbalance.c b/irqbalance.c index 15fb0fe..f182b3c 100644 --- a/irqbalance.c +++ b/irqbalance.c @@ -133,7 +133,7 @@ static void parse_command_line(int argc, char **argv) unsigned long val; while ((opt = getopt_long(argc, argv, - "odfji:p:s:c:b:l:m:t:V:h:v:r:ne:g:", + "odfjVni:p:s:c:b:l:m:t:h:v:r:e:g:", lopts, &longind)) != -1) { switch(opt) { -- 1.8.3.1