Fix handling of --save-exact=name in fetch

This commit is contained in:
Krzysztof Wolicki 2024-07-14 02:07:11 +02:00 committed by Andrew Kelley
parent ee6a52b40f
commit fba618a6c9

View File

@ -6921,7 +6921,7 @@ fn cmdFetch(
} else if (mem.eql(u8, arg, "--save-exact")) {
save = .{ .exact = null };
} else if (mem.startsWith(u8, arg, "--save-exact=")) {
save = .{ .exact = arg["--save=".len..] };
save = .{ .exact = arg["--save-exact=".len..] };
} else {
fatal("unrecognized parameter: '{s}'", .{arg});
}