Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/readme2demo/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def run(
),
engine: Optional[str] = typer.Option(None, help="Agent engine: claude-code | openhands"),
model: Optional[str] = typer.Option(None, help="Model for planner/distiller/tutorial passes"),
output_dir: Optional[Path] = typer.Option(None, "--output-dir", help="Runs directory"),
output_dir: Optional[Path] = typer.Option(None, "-o", "--output-dir", help="Runs directory"),
timeout: Optional[int] = typer.Option(None, help="Agent wall-clock timeout (s)"),
budget_usd: Optional[float] = typer.Option(None, help="Abort if agent cost exceeds this"),
max_turns: Optional[int] = typer.Option(None, help="Agent max turns"),
Expand Down
6 changes: 6 additions & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,12 @@ def test_version_flag():
assert result.output.strip() != ""


def test_run_output_dir_has_short_alias():
cmd = typer.main.get_command(app)
opts = {o for p in cmd.commands["run"].params for o in p.opts + p.secondary_opts}
assert "-o" in opts and "--output-dir" in opts


def test_resume_rejects_missing_run_dir(tmp_path):
missing = tmp_path / "missing-run"
result = runner.invoke(app, ["resume", str(missing)])
Expand Down