From b962d3db820e60863b03c664cad0a32341cc6d79 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Fri, 27 Nov 2015 12:32:13 +0000 Subject: Revert "Skip invalid commandline args instead of aborting" This reverts commit 4ad94124a693528f2ac47a9b4b2e12880586aedf. --- utils/nsoption.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'utils') diff --git a/utils/nsoption.c b/utils/nsoption.c index c83f7799a..ccdd23ae9 100644 --- a/utils/nsoption.c +++ b/utils/nsoption.c @@ -734,10 +734,8 @@ nsoption_commandline(int *pargc, char **argv, struct nsoption_s *opts) /* check we have an option */ /* option must start -- and be as long as the shortest option*/ - if ((arglen < (2+5) ) || (arg[0] != '-') || (arg[1] != '-')) { - idx++; - continue; - } + if ((arglen < (2+5) ) || (arg[0] != '-') || (arg[1] != '-')) + break; arg += 2; /* skip -- */ -- cgit v1.2.3