Skip to content

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

Open
rolandwalker wants to merge 1 commit intomainfrom
RW/respect-empty-batch-argument
Open

Exit with error when the --batch argument is an empty string#1808
rolandwalker wants to merge 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
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 a7afaee to 4e34a80 Compare April 3, 2026 16:49
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