Skip to content

Commit d439d43

Browse files
DTTerastarclaude
andcommitted
fix: replace stale --json refs in markdown footer with --format json
The --json flag was removed in 054064e in favor of --format json, but the renderServings and renderNutrition footer strings still told users to "use --json for the full row". Closes #20 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 0c0e9b6 commit d439d43

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/format.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func renderServings(w io.Writer, recs gocronometer.ServingRecords) error {
140140
renderServingRecord(w, r)
141141
}
142142
}
143-
fmt.Fprintln(w, "_zero-valued nutrients omitted; use --json for the full row_")
143+
fmt.Fprintln(w, "_zero-valued nutrients omitted; use --format json for the full row_")
144144
return nil
145145
}
146146

@@ -298,7 +298,7 @@ func renderNutrition(w io.Writer, rows []map[string]string) error {
298298
}
299299
}
300300
fmt.Fprintln(w)
301-
fmt.Fprintln(w, "_zero-valued nutrients omitted; use --json for the full row_")
301+
fmt.Fprintln(w, "_zero-valued nutrients omitted; use --format json for the full row_")
302302
return nil
303303
}
304304

0 commit comments

Comments
 (0)