agent: update /help syntax to show optional argument

This commit is contained in:
Adrià Arrufat
2026-05-06 19:26:38 +02:00
parent c7c6d08f18
commit 1be0efece6

View File

@@ -390,7 +390,7 @@ fn printSlashHelp(self: *Self, target: []const u8) void {
const summary = firstSentence(s.description);
self.terminal.printInfoFmt(" /{s} — {s}", .{ s.tool_name, summary });
}
self.terminal.printInfo("Meta: /help <name>, /quit");
self.terminal.printInfo("Meta: /help [name], /quit");
return;
}
const lookup = if (target[0] == '/') target[1..] else target;