Skip to content

v0.2.6 — brew dispatcher --help fix

Choose a tag to compare

@sharkyger sharkyger released this 12 Jun 10:37
· 3 commits to main since this release
v0.2.6
8f506da

Patch release. Follow-up to #66 that completes the --help fix for the real-world Homebrew dispatcher path.

Fixed

  • brew safe-upgrade --help (and safe-install / safe-update) now render the tool's own usage instead of Homebrew's generic Example usage: banner (#66 follow-up). Homebrew's dispatcher intercepts --help before exec'ing an external command and renders help only from lines beginning with #: (see External Commands); the scripts carried plain # comments, so brew fell back to its built-in banner and print_help() never ran on that path. Each brew-safe-* script now carries a #: help block mirroring its print_help(), and a regression test drives brew <cmd> --help through the real dispatcher to assert the generic banner is gone. The direct-invocation --help added in 0.2.5 was unaffected and continues to work.

Dogfooded before publish: --help on all three commands renders the tool's own usage via the real brew dispatcher on linuxbrew (Linux) and macOS-arm64; --version reports 0.2.6; no /opt/homebrew vs /usr/local hardcoding.

Full changelog: https://github.com/sharkyger/homebrew-safe-upgrade/blob/v0.2.6/CHANGELOG.md