Replace the hardcoded binary name in usage with os.Args[0] · Entire
git-sync Changes
Find any references to entire.io/entire/gitsync and replace it with entire.io/entire/git-sync.
2mo ago · 2m · 5 calls
- Replaced all 82 references across 40 files (Go imports,
go.mod, docs, lint config). Build verified clean.
2mo ago · 2m · 4 calls
- Committed as
6eee906onnaming.
2mo ago · 3m · 16 calls
- Replace the hardcoded binary name in usage with
os.Args[0]. - Build passes. The 4 failing tests are pre-existing GPG signing failures (
cannot auto-sign commit: disable commit.gpgSign or register an ObjectSigner plugin) unrelated to usage formatting.
Changes:
cmd/git-sync/main.go:427-433,444,561— usage block now uses%[1]sfor binary name (6 lines) and%[2]dforDefaultMaterializedMaxObjects, withos.Args[0]passed in.cmd/git-sync-bench/main.go:453— usage now uses%swithos.Args[0](left the/tmp/git-sync-benchexample path alone since it's a directory hint, not a binary reference).
2mo ago · 22.5s · 3 calls
- Committed as
7d69a31onnaming.
Commit Message:
Use os.Args[0] in usage strings instead of hardcoded names
Keeps usage output accurate when the binary is renamed or invoked through a different path.
Assisted-by: Claude Opus 4.7 noreply@anthropic.com
Signed-off-by: Paulo Gomes paulo@entire.io
Entire-Checkpoint: e8ae87b8f128+9/-9