Skip to content

Restore validation exit for input-too-large errors #188

Description

@tig

P1 Badge Restore validation exit for input-too-large errors

This changed expectation codifies the package default of returning usage error 2 for input-too-large, but clet still emits that code for oversized stdin in MarkdownContentResolver and for oversized --initial, and specs/clet-spec.md requires those cases to exit 65. In practice clet md --json with >8 MiB on stdin, or a known command with an oversized --initial, now takes the wrong exit-code path for scripts/agents that distinguish validation failures from bad CLI usage; keep a clet-specific exit-code mapper instead of accepting the package fallback.

Useful? React with 👍 / 👎.

Originally posted by @chatgpt-codex-connector[bot] in #186 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions