Skip to content

Commit

Permalink
refactor(Parser): Rename *Flag to *Option
Browse files Browse the repository at this point in the history
  • Loading branch information
PrajwalCH committed Oct 6, 2022
1 parent fc5b203 commit ab4ee0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser/Parser.zig
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ fn processValue(
}
if (arg.settings.takes_multiple_values) {
if (!has_max_num) {
try self.consumeValuesTillNextFlag(arg, &values);
try self.consumeValuesTillNextOption(arg, &values);
return self.args_ctx.putMatchedArg(arg, .{ .many = values });
}
}
Expand All @@ -392,7 +392,7 @@ fn consumeNValues(
}
}

fn consumeValuesTillNextFlag(
fn consumeValuesTillNextOption(
self: *Parser,
arg: *const Arg,
list: *std.ArrayList([]const u8),
Expand Down

0 comments on commit ab4ee0b

Please sign in to comment.