Better parse errors #4

Open
opened 2026-09-06 17:09:59 +00:00 by walt · 0 comments
Owner

Better parse errors

Improve parser errors without adding a large diagnostics system.

Example:

unknown option: --outpt
did you mean: --output?

Goals:

  • Keep errors short and readable
  • Suggest likely commands/options for simple typos
  • Avoid turning error handling into a large framework

This can stay lightweight and be added after core parsing behavior is solid.

## Better parse errors Improve parser errors without adding a large diagnostics system. Example: ```text unknown option: --outpt did you mean: --output? ``` Goals: - Keep errors short and readable - Suggest likely commands/options for simple typos - Avoid turning error handling into a large framework This can stay lightweight and be added after core parsing behavior is solid.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
walt/walts-cli#4
No description provided.