Skip to content

fix(scripts): handle -h/--help in branch start/finish#609

Merged
NagyVikt merged 1 commit into
mainfrom
fix/branch-help-flag
May 28, 2026
Merged

fix(scripts): handle -h/--help in branch start/finish#609
NagyVikt merged 1 commit into
mainfrom
fix/branch-help-flag

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Summary

  • gx branch start --help / gx branch finish --help fell into the unknown-option catch-all and exited 1 with an "Unknown option/argument" error.
  • Add an explicit -h|--help case that prints usage and exits 0 for agent-branch-start.sh and agent-branch-finish.sh (agent-branch-merge.sh already handled it).
  • Also patch the older frontend/scripts/agent-branch-start.sh copy.

Test plan

  • bash -n passes on all three scripts
  • --help on start + finish prints usage with exit 0

🤖 Generated with Claude Code

`--help` fell into the unknown-option catch-all and exited 1 with an
"Unknown option/argument" error. Add an explicit -h|--help case that
prints usage and exits 0 for agent-branch-start and agent-branch-finish
(branch-merge already handled it). Also patch the older frontend copy.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@NagyVikt NagyVikt merged commit 49a8ec8 into main May 28, 2026
2 of 3 checks passed
@NagyVikt NagyVikt deleted the fix/branch-help-flag branch May 28, 2026 20:22
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.

1 participant