Skip to content

Commit

Permalink
oapi-cli: fix multiples --set-var
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Gatto <matthias.gatto@outscale.com>
  • Loading branch information
outscale-mgo committed Jun 13, 2024
1 parent 1840d82 commit 6639982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cognac_gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ EOF
JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_NOSLASHESCAPE |
color_flag));
}
if (i + 1 < ac && !strcmp(av[i + 1], "--set-var")) {
while (i + 1 < ac && !strcmp(av[i + 1], "--set-var")) {
++i;
TRY(i + 1 >= ac, "--set-var require an argument");
if (!jobj)
Expand Down

0 comments on commit 6639982

Please sign in to comment.