diff options
Diffstat (limited to 'src/switch.zig')
| -rw-r--r-- | src/switch.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/switch.zig b/src/switch.zig index 3323332..891c4e0 100644 --- a/src/switch.zig +++ b/src/switch.zig | |||
| @@ -13,7 +13,7 @@ pub const max_args = 1; | |||
| 13 | pub fn main(comptime Result: type, config: Config, res: Result) !void { | 13 | pub fn main(comptime Result: type, config: Config, res: Result) !void { |
| 14 | const allocator = config.allocator; | 14 | const allocator = config.allocator; |
| 15 | 15 | ||
| 16 | const name = res.positionals[0]; | 16 | const name = res.positionals[0].?; |
| 17 | if (!try Installation.isInstalled(allocator, name)) { | 17 | if (!try Installation.isInstalled(allocator, name)) { |
| 18 | std.log.err( | 18 | std.log.err( |
| 19 | "No installation by name {s} found, run `zup install {s}`", | 19 | "No installation by name {s} found, run `zup install {s}`", |