summaryrefslogtreecommitdiff
path: root/option.cc
diff options
context:
space:
mode:
Diffstat (limited to 'option.cc')
-rw-r--r--option.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/option.cc b/option.cc
index a75c8c40..8a3303b3 100644
--- a/option.cc
+++ b/option.cc
@@ -87,6 +87,7 @@ void process_arguments(int argc, char ** argv, const bool anywhere,
}
else if ((*j).long_opt == *i + 2) {
process_option(*j, argv[++index]);
+ i++;
goto next;
}
}
@@ -105,6 +106,7 @@ void process_arguments(int argc, char ** argv, const bool anywhere,
if ((*i)[1] == (*j).short_opt) {
if ((*j).wants_arg) {
process_option(*j, argv[++index]);
+ i++;
goto next;
} else {
process_option(*j);