We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c2e3122 + 3e9854e commit 306d8bfCopy full SHA for 306d8bf
src/parser/Parser.zig
@@ -342,7 +342,7 @@ fn parseOptionValue(
342
// If we have consumed a single value only, check if the policy of an arg
343
// allows to return it as a single value.
344
if (values.items.len == 1 and !arg.hasProperty(.takes_multiple_values)) {
345
- const value = values.pop();
+ const value = values.pop().?;
346
values.deinit();
347
// No verification required here as it is already verfied while consuming.
348
return MatchedArgValue.initSingle(value);
0 commit comments