Skip to content

fix: show 'did you mean?' instead of root fallback for command typos#122

Merged
tmm merged 6 commits intomainfrom
tmm/did-you-mean-root-fallback
Apr 8, 2026
Merged

fix: show 'did you mean?' instead of root fallback for command typos#122
tmm merged 6 commits intomainfrom
tmm/did-you-mean-root-fallback

Conversation

@tmm
Copy link
Copy Markdown
Member

@tmm tmm commented Apr 8, 2026

When a CLI has rootFetch or rootCommand, typing a near-match of a known command (e.g. upgra instead of upgrade) would fall through to the root handler instead of showing a "Did you mean?" suggestion. This checks for fuzzy matches before falling back to the root handler.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 8, 2026

Open in StackBlitz

npm i https://pkg.pr.new/incur@122

commit: 453a852

@tmm tmm merged commit 26d7bf8 into main Apr 8, 2026
5 checks passed
@tmm tmm deleted the tmm/did-you-mean-root-fallback branch April 8, 2026 23:23
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.

1 participant