Skip to content

feat: add --silent / -s flag to suppress row count output#129

Merged
vmvarela merged 2 commits intomasterfrom
issue-114/add-silent-flag
May 7, 2026
Merged

feat: add --silent / -s flag to suppress row count output#129
vmvarela merged 2 commits intomasterfrom
issue-114/add-silent-flag

Conversation

@vmvarela
Copy link
Copy Markdown
Owner

@vmvarela vmvarela commented May 7, 2026

Summary

  • Adds --silent / -s flag that suppresses the rows-processed count from stderr, producing clean stdout-only output suitable for piping or scripting
  • --silent and --verbose are mutually exclusive; passing both returns an error with a descriptive message
  • Help text documents -s, --silent alongside -v, --verbose

Changes

  • src/main.zig: new SilentVerboseConflict error, silent: bool field in ParsedArgs, parsing of --silent/-s, mutual exclusion with --verbose/-v, suppressed stderr row-count in run()
  • build.zig: 4 new integration tests (71–74) covering silent mode, -s alias, and conflict with --verbose/-v

Acceptance Criteria

  • --silent and -s are accepted as equivalent flags
  • When --silent is set, the rows-processed count is not printed to stderr
  • --silent and --verbose are mutually exclusive; passing both returns an error
  • Help text (--help) documents --silent / -s alongside --verbose / -v
  • Tests cover silent mode output and the mutually-exclusive conflict

Closes #114

@vmvarela vmvarela added priority:low Nice to have, do when possible size:xs Trivial — less than 1 hour type:feature New functionality labels May 7, 2026
@github-actions github-actions Bot removed the type:feature New functionality label May 7, 2026
@vmvarela vmvarela merged commit 06ac64d into master May 7, 2026
4 checks passed
@vmvarela vmvarela deleted the issue-114/add-silent-flag branch May 7, 2026 10:36
@vmvarela vmvarela added the type:feature New functionality label May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:low Nice to have, do when possible size:xs Trivial — less than 1 hour type:feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add --silent / -s flag to suppress row count output

1 participant