aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorKrzysztof Wolicki <der.teufel.mail@gmail.com>2024-07-14 02:07:11 +0200
committerAndrew Kelley <andrew@ziglang.org>2024-07-13 22:39:53 -0700
commitfba618a6c9ae4f70dc8a7879975adf31d3a44d4d (patch)
tree5265c3c3d35924bae730c297968c2428d8742cf8 /src/main.zig
parentee6a52b40f9836beb0d35820d1987f3c7e522f45 (diff)
downloadzig-fba618a6c9ae4f70dc8a7879975adf31d3a44d4d.tar.gz
zig-fba618a6c9ae4f70dc8a7879975adf31d3a44d4d.zip
Fix handling of `--save-exact=name` in fetch
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.zig b/src/main.zig
index 39f07e982b..29d5296cb8 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -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});
}