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

Standardize the error for -v parameter and guide user in case of confusion #842

Open
fellyph opened this issue Sep 25, 2024 · 0 comments
Open

Comments

@fellyph
Copy link
Collaborator

fellyph commented Sep 25, 2024

Describe the bug
Running the CLI command psat -v the CLI triggers the following error:

Some errors occurred while analyzing the website.
For more information, check the stack trace below:

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined

It is common to get confused between -V(version) and -v(verbose) and run -v as the first parameter, the error message should follow the same standard as the other message, and if that case happens suggest use -V instead -v.

Screenshot 2024-09-25 at 14 52 47

To Reproduce
Steps to reproduce the behavior:

  1. Go to the terminal and run psat -v
  2. See the error

Expected behavior
Displays a standard message and guides the user in case of confusion

Desktop (please complete the following information):

  • OS: MacOS
  • Version PSAT CLI 0.11
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

No branches or pull requests

1 participant