diff options
author | makefunstuff <[email protected]> | 2024-07-03 17:20:22 +0200 |
---|---|---|
committer | makefunstuff <[email protected]> | 2024-07-03 17:20:22 +0200 |
commit | 1fcbe4d80efc66493fe8924892a98f9d2009ff16 (patch) | |
tree | 7aa1f85a15b9ffc3733cd4fe3ddfa413c3e3f922 /src/main.zig | |
parent | f4a8896608d61f23175dca7d96cea77b43a95c3c (diff) | |
download | tinkerbunk-1fcbe4d80efc66493fe8924892a98f9d2009ff16.tar.gz |
listening some muzak
Diffstat (limited to 'src/main.zig')
-rw-r--r-- | src/main.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.zig b/src/main.zig index 5d5f734..498b928 100644 --- a/src/main.zig +++ b/src/main.zig @@ -2,6 +2,7 @@ const std = @import("std"); const ls = @import("ls.zig"); const socket_server = @import("socket-server.zig"); const sdl_window = @import("sdl-window.zig"); +const brr = @import("brr.zig"); const commands = [_]struct { name: []const u8, @@ -48,7 +49,7 @@ pub fn main() !void { return; } - if (args.len == 2) { + if (args.len >= 2) { var argument = Arg{ .name = args[1], }; @@ -57,9 +58,8 @@ pub fn main() !void { .LS => try ls.ls(), .TCP => try socket_server.start_server(), .WINDOW => try sdl_window.present_sdl_window(), - else => { - return; - }, + // TODO: parse options for arguments + .BRR => try brr.brr(args[2]), } } |