Skip to content

Exit with error when the --batch argument is an empty string#1808

Merged
rolandwalker merged 1 commit intomainfrom
RW/respect-empty-batch-argument
Apr 4, 2026
Merged

Exit with error when the --batch argument is an empty string#1808
rolandwalker merged 1 commit intomainfrom
RW/respect-empty-batch-argument

Conversation

@rolandwalker
Copy link
Copy Markdown
Contributor

Description

Exit with error when the --batch argument is an empty string, rather than silently ignoring --batch and entering the REPL. We must use a None test rather than a general truthiness test.

Checklist

  • I added this contribution to the changelog.md file.
  • I added my name to the AUTHORS file (or it's already there).
  • To lint and format the code, I ran
    uv run ruff check && uv run ruff format && uv run mypy --install-types .

@rolandwalker rolandwalker self-assigned this Apr 3, 2026
@rolandwalker rolandwalker force-pushed the RW/respect-empty-batch-argument branch from a7afaee to 4e34a80 Compare April 3, 2026 16:49
rather than silently ignoring --batch and entering the REPL.  We must
use a None test rather than a general truthiness test.
@rolandwalker rolandwalker force-pushed the RW/respect-empty-batch-argument branch from 4e34a80 to 626c25c Compare April 4, 2026 12:37
@rolandwalker rolandwalker merged commit ff2d373 into main Apr 4, 2026
13 of 14 checks passed
@rolandwalker rolandwalker deleted the RW/respect-empty-batch-argument branch April 4, 2026 12:41
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