From 6ca9208260c36103358b1bb9ec57662d27202767 Mon Sep 17 00:00:00 2001 From: Karl Seguin Date: Thu, 23 Apr 2026 17:31:25 +0800 Subject: [PATCH] Default command 'serve' for backwards compatibility --- src/cli.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.zig b/src/cli.zig index 8506839a..ed6a1f0b 100644 --- a/src/cli.zig +++ b/src/cli.zig @@ -264,7 +264,7 @@ pub fn Builder(comptime commands: anytype) type { const exec_name = std.fs.path.basename(args.next().?); - const cmd_str: []const u8 = args.next() orelse return error.MissingCommand; + const cmd_str: []const u8 = args.next() orelse "serve"; inline for (commands) |command| { // Match a command. if (std.mem.eql(u8, cmd_str, command.name)) {