From 53cf22bc782fb00edb563c7181e4cd2a4c1c1233 Mon Sep 17 00:00:00 2001 From: Spencer Brower Date: Tue, 21 Apr 2026 19:34:03 -0400 Subject: [PATCH] feat: Added help output for commands. --- src/comma.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/comma.zig b/src/comma.zig index 6d37a88..9d83f0c 100644 --- a/src/comma.zig +++ b/src/comma.zig @@ -6,7 +6,8 @@ pub const Command = struct { name: []const u8, short: ?[]const u8 = null, long: ?[]const u8 = null, - subcommands: []const Command = &[0]Command{}, + subcommands: []const Command = &.{}, + examples: [][]const u8 = &.{}, Type: type, pub fn new(cmd: CommandOptions) Command {