Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update details to print either command or option #21648

Closed
wants to merge 4 commits into from

Conversation

ttytm
Copy link
Member

@ttytm ttytm commented Jun 6, 2024

Improves errors on unknown arguments. Make passing an unknown option directly after v print a similar message like it does for an known command, pointing to v help.

Current:

  • Command:
    ❯ v xyz
    v: unknown command `xyz`
    Run  v help  for usage.
  • Options
    ❯ v -xyz
    Unknown argument `-xyz`

Updated:

  • .
    ❯ v -xyz
    v: unknown option `-xyz`
    Run  v help  for usage.

@ttytm ttytm marked this pull request as draft June 6, 2024 03:17
@ttytm ttytm closed this Jun 7, 2024
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