Skip to content

fix: support version flags - #19

Merged
thousandflowers merged 1 commit into
thousandflowers:mainfrom
JasonColapietro:fix/version-flags
Aug 4, 2026
Merged

thousandflowers merged 1 commit into
thousandflowers:mainfrom
JasonColapietro:fix/version-flags

Conversation

@JasonColapietro

Copy link
Copy Markdown
Contributor

What changed

  • Add --version and -v aliases for the existing version subcommand.
  • Return before environment discovery so all three forms behave identically.
  • Cover output, exit status, and stderr in a table test.

Why

Common version flags previously failed argument parsing with exit code 2 even though the version subcommand already existed.

Checks

  • go test ./... -count=1
  • go vet ./...
  • go build ./cmd/reap
  • git diff --check

Closes #17

@thousandflowers
thousandflowers marked this pull request as ready for review August 4, 2026 08:06
@thousandflowers
thousandflowers merged commit 6262f7b into thousandflowers:main Aug 4, 2026
2 checks passed
@thousandflowers

thousandflowers commented Aug 4, 2026 •

Copy link
Copy Markdown
Owner

Thank you @JasonColapietro! 🙏 Clean fix matched the issue exactly, stdlib-only, and the table test covering all three forms (version / --version / -v) plus stderr was exactly right.

Shipped in v0.4.2: https://github.com/thousandflowers/skillreaper/releases/tag/v0.4.2

Already live on Homebrew (brew install thousandflowers/tap/skillreaper) and npm. Verified a real install prints reap 0.4.2 for all three forms. Appreciate the contribution!

JasonColapietro added a commit to Suede-AI/suedeai-org that referenced this pull request Aug 6, 2026
Nine changes have merged into eight projects, not just Backstage.
Verified against the GitHub API: backstage/backstage#35102,
conorbronsdon/avoid-ai-writing#106, ignaciohermosillacornejo/copilot-money-mcp#616,
thousandflowers/skillreaper#19, pbarone/uptime-kuma-api2#20,
OpenSauce/nam-rs#50, jakegold1647/sam-doctor#6, and Din-es/Ledger_c#11 and #12.

Excludes three merged awesome-list entries, which add Suede's own
projects to directories rather than contributing to the software.
@JasonColapietro
JasonColapietro deleted the fix/version-flags branch September 28, 2026 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support --version / -v flag

2 participants