Skip to content

Add --bail as an alias for --halt - #722

Merged
mathiasrw merged 6 commits into
mainfrom
copilot/add-bail-as-alias-for-halt
Oct 12, 2026
Merged

mathiasrw merged 6 commits into
mainfrom
copilot/add-bail-as-alias-for-halt

Conversation

Copilot AI commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

--halt (-H) already stops on the first error; --bail was rejected as unknown. Test runners commonly use --bail, so that name should work the same way.

Changes

  • CLI — yargs alias list is ['halt', 'bail'] on -H, so --bail sets the same config as --halt
  • Docs — README options table lists --bail next to --halt; help shows -H, --halt, --bail
  • Tests — CLI coverage for help text, error exit, and a clean run with --bail
rexreplace o x missing.file --bail   # exits 1 on first error
rexreplace o x my.file --bail        # same as --halt when nothing fails

Copilot AI linked an issue Oct 12, 2026 that may be closed by this pull request
Copilot AI and others added 2 commits October 12, 2026 16:10
Co-authored-by: mathiasrw <1063454+mathiasrw@users.noreply.github.com>
Co-authored-by: mathiasrw <1063454+mathiasrw@users.noreply.github.com>
Copilot AI changed the title [WIP] Add --bail as an alias for --halt Add --bail as an alias for --halt Oct 12, 2026
Copilot AI requested a review from mathiasrw October 12, 2026 16:13

@mathiasrw mathiasrw left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread test/js/halt.test.js Outdated
Co-authored-by: mathiasrw <1063454+mathiasrw@users.noreply.github.com>
@mathiasrw

Copy link
Copy Markdown
Owner

@copilot

Please correct file formatting using yarn format and try again.

Co-authored-by: mathiasrw <1063454+mathiasrw@users.noreply.github.com>

Copilot AI commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor Author

@copilot

Please correct file formatting using yarn format and try again.

Ran yarn format; Prettier only adjusted test/js/halt.test.js. yarn test-format is clean in 7f2a2a0.

@copilot

Please correct file formatting using yarn format and try again.

Correction: the format commit is 60fc04f (not the hash in the previous reply).

@mathiasrw
mathiasrw marked this pull request as ready for review October 12, 2026 17:35
@mathiasrw
mathiasrw merged commit c3018cc into main Oct 12, 2026
7 checks passed
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.

Add --bail as an alias for --halt

2 participants