Skip to content

Report invalid render geometry and unreadable CLI input - #188

Merged
tony merged 3 commits into
masterfrom
fix/128-cli-input-errors
Dec 5, 2026
Merged

tony merged 3 commits into
masterfrom
fix/128-cli-input-errors

Conversation

@tony

@tony tony commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Closes #128

What changed, and why:

The render command validates --rows and --cols before reading input. Every subcommand reports an unreadable input path on stderr. Both cases exit with status 2.

Checks run:

On Linux, Ruff formatting and lint, ty for Python 3.12 through 3.15, the full pytest suite with doctests, compiled Ghostty comparisons, and the Sphinx warnings-as-errors build passed.

Tool use:

Codex prepared the change and ran the local checks. A separate Codex reviewer replayed the changed behavior and checked the publication tree against the reviewed patch.

tony added a commit that referenced this pull request Dec 3, 2026
why: Readers need the behavior and scope of this change at release.

what:
- Add the unreleased entry for PR #188
- Preserve previously published notes and the parent branch's entries
@tony
tony marked this pull request as ready for review December 3, 2026 02:04
@tony
tony force-pushed the fix/128-cli-input-errors branch from d1694ce to 7e1a47d Compare December 3, 2026 23:58
tony added 3 commits December 5, 2026 07:21
why: Invalid dimensions should fail before reading input.

what:
- Validate both geometry options at the argument boundary.
- Check stderr and status when the input path is also invalid.

Refs #128
why: File read errors escape the command boundary as tracebacks.

what:
- Report unreadable input through the shared argument parser.
- Exercise each subcommand's stderr and exit status.

Fixes #128
why: Callers need to distinguish invalid geometry from a file that the
     CLI cannot read.

what:
- Document stderr diagnostics, validation order and exit status 2.
@tony
tony force-pushed the fix/128-cli-input-errors branch from 7e1a47d to 077f0d1 Compare December 5, 2026 13:22
@tony
tony changed the base branch from master to fix/126-modified-plus December 5, 2026 13:22
@tony
tony changed the base branch from fix/126-modified-plus to master December 5, 2026 13:28
@tony
tony merged commit 02298b3 into master Dec 5, 2026
9 checks passed
@tony
tony deleted the fix/128-cli-input-errors branch December 5, 2026 20:41

This branch was successfully deployed

1 active deployment
docs — 077f0d14 Deployed Dec 5, 2026 by tony via build (3.14) #389
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.

Report invalid render geometry and missing CLI input concisely

1 participant