Skip to content

E 661 improve unknown command error message#39

Merged
nainglinnkhant merged 12 commits into
mainfrom
e-661-improve-unknown-command-error-message
Oct 3, 2025
Merged

E 661 improve unknown command error message#39
nainglinnkhant merged 12 commits into
mainfrom
e-661-improve-unknown-command-error-message

Conversation

@nainglinnkhant

@nainglinnkhant nainglinnkhant commented Oct 3, 2025

Copy link
Copy Markdown
Contributor

Note

Enhances CLI UX with smarter unknown-command errors (suggestions, deprecation notice) and adds automatic update checks.

  • CLI UX:
    • Improve unknown command handling across mxbai, store, config, and store files using formatUnknownCommandError with suggestions and a vsstore deprecation notice.
    • Enable showHelpAfterError() on root and subcommands.
    • Show help when no args are provided; filter completion-server from suggestions.
  • Updates:
    • Add checkForUpdates(version) with cached NPM lookup and banner output in update-checker.ts.
  • Utilities:
    • New utils/command-suggestions.ts (Levenshtein-based suggestions, formatted error output).
  • Tests:
    • Add unit tests for command suggestions and error formatting.

Written by Cursor Bugbot for commit c5cf811. This will update automatically on new commits. Configure here.

@danielwasmus

Copy link
Copy Markdown
Contributor

bugbot run

cursor[bot]

This comment was marked as outdated.

@danielwasmus
danielwasmus self-requested a review October 3, 2025 14:52

@danielwasmus danielwasmus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@nainglinnkhant
nainglinnkhant force-pushed the e-661-improve-unknown-command-error-message branch from 9511ef5 to c5cf811 Compare October 3, 2025 18:28
@nainglinnkhant
nainglinnkhant merged commit 1da03c4 into main Oct 3, 2025
4 checks passed
@nainglinnkhant
nainglinnkhant deleted the e-661-improve-unknown-command-error-message branch October 3, 2025 18:38
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.

2 participants