summaryrefslogtreecommitdiff
path: root/src/subcommand.zig
diff options
context:
space:
mode:
authorGravatar Uko Kokņevičs2023-04-02 22:28:09 +0300
committerGravatar Uko Kokņevičs2023-04-02 22:30:53 +0300
commit06a9ac758c3c201625cbc17d3ccc0f8eea19cdf5 (patch)
tree1d8261677108400367497a1adec01135e18ad6f5 /src/subcommand.zig
parentActually use my zig-curl instead of zelda. (diff)
downloadzup-06a9ac758c3c201625cbc17d3ccc0f8eea19cdf5.tar.gz
zup-06a9ac758c3c201625cbc17d3ccc0f8eea19cdf5.tar.xz
zup-06a9ac758c3c201625cbc17d3ccc0f8eea19cdf5.zip
Update to latest zig
Diffstat (limited to 'src/subcommand.zig')
-rw-r--r--src/subcommand.zig6
1 files changed, 3 insertions, 3 deletions
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 @@
1const clap = @import("clap"); 1const clap = @import("clap");
2const std = @import("std"); 2const std = @import("std");
3const zup = @import("zup"); 3const zup = @import("root");
4 4
5const ArgIterator = std.process.ArgIterator; 5const ArgIterator = std.process.ArgIterator;
6const Config = zup.Config; 6const Config = zup.Config;
@@ -49,11 +49,11 @@ pub fn SubCommand(comptime template: type) type {
49 }; 49 };
50 defer res.deinit(); 50 defer res.deinit();
51 51
52 if (res.args.help) { 52 if (res.args.help != 0) {
53 return help(name); 53 return help(name);
54 } 54 }
55 55
56 if (res.args.version) { 56 if (res.args.version != 0) {
57 return zup.printVersion(); 57 return zup.printVersion();
58 } 58 }
59 59