Print --version to stdout (closes #15) #78

Merged
clawbot merged 1 commits from issue-15-version-stdout into next 2026-10-04 09:47:29 +02:00
1 Commits
Author SHA1 Message Date
sneak 53c621798f Print --version to stdout (closes #15)
check / check (push) Waiting to run
Cobra's built-in version flag prints through the writer that carries
help and usage, which is stderr here. The root command now defines
its own -v/--version flag and prints one line, "sfdupes VERSION", to
stdout; a failed write is a fatal error (exit 1). Help and usage stay
on stderr. README documents --version and --help, their streams and
exit codes. Tests cover both flags and the failed write.

Model: opus-5-5
2026-10-04 07:39:34 +00:00