Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions internal/cli/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -1163,9 +1163,7 @@ func runAffectedTests(ctx context.Context, cfg config.Config, stdout io.Writer,
return nil
}

func printUsage(w io.Writer) {
printRootHelp(w)
}
func printUsage(w io.Writer) { printRootHelp(w) }
Comment thread
isink17 marked this conversation as resolved.

func printRootHelp(w io.Writer) {
fmt.Fprintf(w, "%s - local-first code context engine and MCP server\n\n", appname.BinaryName)
Expand All @@ -1176,6 +1174,8 @@ func printRootHelp(w io.Writer) {

fmt.Fprintln(w, "Commands:")
for _, cmd := range commands() {
// Use the first usage line as the synopsis so help stays stable even if
// additional notes exist below it (jsonl hints, etc.).
synopsis := cmd.name
if len(cmd.usageLines) > 0 {
synopsis = strings.TrimSpace(cmd.usageLines[0])
Expand Down
1 change: 0 additions & 1 deletion internal/cli/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ func TestRunRootHelp(t *testing.T) {
{},
{"--help"},
{"-h"},
{"help"},
} {
t.Run(strings.Join(append([]string{"root"}, args...), "_"), func(t *testing.T) {
var out bytes.Buffer
Expand Down
Loading