-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Print the "invalid value" for output
in CLI flags
#12787
Comments
Thanks for filing @ha-douken! This is unfortunately, WAI. The error message could definitely be improved though, we'll add the unexpected value to the debug output. |
output
in CLI flags
Is this issue being picked up for dev? If not, would love to work on this. Any directions would be awesome @patrickhulce |
Go for it @svkrclg! Basically in lighthouse/lighthouse-cli/cli-flags.js Lines 364 to 374 in 233c56e
you'll want to add the value that failed validation to our error message instead of just a generic one :) |
Hey @patrickhulce Is this issue solved or needs any more help !! Please let me know I will be happy to do |
This has been solved by #12836, thanks @rohan-kulkarni-25! |
FAQ
URL
https://www.google.com
What happened?
$ npx lighthouse --output=json --output=html https://www.google.com
throws
Invalid values. Argument 'output' must be an array from choices "json", "html", "csv"
node: v12.22.3
"lighthouse": "8.1.0"
What did you expect?
It to run.
What have you tried?
No response
How were you running Lighthouse?
CLI
Lighthouse Version
8.1.0
Chrome Version
No response
Node Version
12.22.3
Relevant log output
The text was updated successfully, but these errors were encountered: