From 6e85bbbafe56f6b84e7229b33f4560806d60b683 Mon Sep 17 00:00:00 2001 From: Yiorgis Gozadinos Date: Mon, 22 Jun 2026 12:32:26 +0300 Subject: [PATCH] Make run-batch CLI validation output stable --- haiku_rag_slim/haiku/rag/ingester/cli.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/haiku_rag_slim/haiku/rag/ingester/cli.py b/haiku_rag_slim/haiku/rag/ingester/cli.py index 3527edf5..c1f38b7d 100644 --- a/haiku_rag_slim/haiku/rag/ingester/cli.py +++ b/haiku_rag_slim/haiku/rag/ingester/cli.py @@ -228,9 +228,11 @@ def run_batch( from a source are deleted. Exits non-zero if any job dead-letters or a source's sweep does not complete.""" if manifest is not None and dry_run: - raise typer.BadParameter("--manifest cannot be combined with --dry-run") + typer.echo("Error: --manifest cannot be combined with --dry-run") + raise typer.Exit(2) if output is not None and not dry_run: - raise typer.BadParameter("--output is only valid with --dry-run") + typer.echo("Error: --output is only valid with --dry-run") + raise typer.Exit(2) asyncio.run( _run_batch( get_config(),