diff options
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.zig b/src/main.zig index b0588eb..42a4d34 100644 --- a/src/main.zig +++ b/src/main.zig @@ -44,7 +44,11 @@ pub fn main() !void { const pub_cmd = app.createCommand("pub", "Publish a message."); try zits_app.addSubcommand(pub_cmd); - const matches = try app.parseProcess(); + var io_impl: std.Io.Threaded = .init_single_threaded; + defer io_impl.deinit(); + const io = io_impl.io(); + + const matches = try app.parseProcess(io); if (matches.subcommandMatches("serve")) |serve_matches| { var info: zits.Server.ServerInfo = .{ |
