From d439d4369206d0ab2a993d92c069722a267ef2d3 Mon Sep 17 00:00:00 2001 From: DTTerastar Date: Sat, 25 Apr 2026 19:54:29 -0400 Subject: [PATCH] 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) --- cmd/format.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/format.go b/cmd/format.go index 0cfd3b6..7f477ce 100644 --- a/cmd/format.go +++ b/cmd/format.go @@ -140,7 +140,7 @@ func renderServings(w io.Writer, recs gocronometer.ServingRecords) error { renderServingRecord(w, r) } } - fmt.Fprintln(w, "_zero-valued nutrients omitted; use --json for the full row_") + fmt.Fprintln(w, "_zero-valued nutrients omitted; use --format json for the full row_") return nil } @@ -298,7 +298,7 @@ func renderNutrition(w io.Writer, rows []map[string]string) error { } } fmt.Fprintln(w) - fmt.Fprintln(w, "_zero-valued nutrients omitted; use --json for the full row_") + fmt.Fprintln(w, "_zero-valued nutrients omitted; use --format json for the full row_") return nil }