Skip to content

Commit 720b2c0

Browse files
committed
chore: bump to 0.2.2
1 parent 7ae1eda commit 720b2c0

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.{
22
.name = .zigcli,
33
.fingerprint = 0x9e1fddac8cbb1039,
4-
.version = "0.2.1",
4+
.version = "0.2.2",
55
.paths = .{
66
"src",
77
"build.zig",

src/bin/zigfetch.zig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const Args = struct {
2525
timeout: usize = 60,
2626
@"no-dep": bool = false,
2727
@"debug-hash": bool = false,
28-
@"no-check": bool = false,
28+
@"skip-check": bool = false,
2929

3030
pub const __shorts__ = .{
3131
.version = .V,
@@ -34,7 +34,7 @@ const Args = struct {
3434
.help = .h,
3535
.@"no-dep" = .n,
3636
.@"debug-hash" = .d,
37-
.@"no-check" = .c,
37+
.@"skip-check" = .s,
3838
};
3939
pub const __messages__ = .{
4040
.help = "Show help",
@@ -43,7 +43,7 @@ const Args = struct {
4343
.timeout = "Libcurl http timeout in seconds",
4444
.@"debug-hash" = "Print hash for each file",
4545
.@"no-dep" = "Disable fetch dependencies",
46-
.@"no-check" = "Skip hash field check",
46+
.@"skip-check" = "Skip hash field check",
4747
};
4848
};
4949

@@ -226,7 +226,7 @@ fn cachePackageFromUrl(
226226
defer allocator.free(src_dirname);
227227
const actual_hash = try calcHash(allocator, sub_dir, sub_dirname, true);
228228
if (expected_hash) |expected| {
229-
if (args.@"no-check") {
229+
if (args.@"skip-check") {
230230
try moveToCache(allocator, src_dirname, expected);
231231
return expected;
232232
}
@@ -337,7 +337,7 @@ fn cachePackageFromGit(
337337
defer dir.close();
338338
const actual_hash = try calcHash(allocator, dir, "", true);
339339
if (expected_hash) |expected| {
340-
if (args.@"no-check") {
340+
if (args.@"skip-check") {
341341
try moveToCache(allocator, tmp_dirname, expected);
342342
return expected;
343343
}

0 commit comments

Comments
 (0)