diff options
| author | 2025-07-22 05:56:17 +0300 | |
|---|---|---|
| committer | 2025-07-22 05:56:17 +0300 | |
| commit | a43867dd7d02937a233a039eec7c7f43977b0b0c (patch) | |
| tree | 1fe7487f67df24ed4c42251da81f35320ed2b9fa /src/switch.zig | |
| parent | Update zig (diff) | |
| download | zup-0.6.0.tar.gz zup-0.6.0.tar.xz zup-0.6.0.zip | |
Release 0.6.00.6.0
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}`", |