Skip to content

Commit

Permalink
Possible for for muellan#44.
Browse files Browse the repository at this point in the history
This allows repeatable required options to have a single argument.
  • Loading branch information
afranchuk committed Feb 21, 2020
1 parent 2c32b2f commit e5cc264
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/clipp.h
Original file line number Diff line number Diff line change
Expand Up @@ -5034,7 +5034,7 @@ class parser
} else {
++pos;
}
} else { //param
} else if (pos.is_repeatable()) { //non-repeatable param
if(pos->required()) {
action(pos);
++pos;
Expand All @@ -5043,6 +5043,8 @@ class parser
} else {
++pos;
}
} else {
++pos;
}
}
}
Expand Down

0 comments on commit e5cc264

Please sign in to comment.