From 06a9ac758c3c201625cbc17d3ccc0f8eea19cdf5 Mon Sep 17 00:00:00 2001 From: Uko Kokņevičs Date: Sun, 2 Apr 2023 22:28:09 +0300 Subject: Update to latest zig --- src/subcommand.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/subcommand.zig') diff --git a/src/subcommand.zig b/src/subcommand.zig index d750e94..09f1b4f 100644 --- a/src/subcommand.zig +++ b/src/subcommand.zig @@ -1,6 +1,6 @@ const clap = @import("clap"); const std = @import("std"); -const zup = @import("zup"); +const zup = @import("root"); const ArgIterator = std.process.ArgIterator; const Config = zup.Config; @@ -49,11 +49,11 @@ pub fn SubCommand(comptime template: type) type { }; defer res.deinit(); - if (res.args.help) { + if (res.args.help != 0) { return help(name); } - if (res.args.version) { + if (res.args.version != 0) { return zup.printVersion(); } -- cgit v1.2.3