diff options
Diffstat (limited to 'src/subcommand.zig')
| -rw-r--r-- | src/subcommand.zig | 6 |
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 @@ | |||
| 1 | const clap = @import("clap"); | 1 | const clap = @import("clap"); |
| 2 | const std = @import("std"); | 2 | const std = @import("std"); |
| 3 | const zup = @import("zup"); | 3 | const zup = @import("root"); |
| 4 | 4 | ||
| 5 | const ArgIterator = std.process.ArgIterator; | 5 | const ArgIterator = std.process.ArgIterator; |
| 6 | const Config = zup.Config; | 6 | const 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 | ||