fix: Prevent --describe from exiting 1 on missing headers #245

Merged
mprihoda merged 1 commit from fix/describe-exit-code into main 2026-03-09 21:50:03 +00:00
mprihoda commented 2026-03-09 21:50:01 +00:00 (Migrated from github.com)

Summary

  • ./iw --describe phase-commit (and other commands without // USAGE: headers) exited with code 1 despite printing correct output
  • Root cause: grep returns exit 1 on no match, combined with set -euo pipefail
  • Added || true to PURPOSE and USAGE grep calls, matching the existing pattern used by ARGS and EXAMPLES

🤖 Generated with Claude Code

## Summary - `./iw --describe phase-commit` (and other commands without `// USAGE:` headers) exited with code 1 despite printing correct output - Root cause: `grep` returns exit 1 on no match, combined with `set -euo pipefail` - Added `|| true` to PURPOSE and USAGE grep calls, matching the existing pattern used by ARGS and EXAMPLES 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No description provided.