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

slightly incorrect CLI usage creates silent failures #154

Open
davidawad opened this issue Apr 26, 2023 · 0 comments
Open

slightly incorrect CLI usage creates silent failures #154

davidawad opened this issue Apr 26, 2023 · 0 comments

Comments

@davidawad
Copy link

Hey everyone, this should be a really easy issue to solve.

here's an example usage I tried to use the CLI, where I tried to convert valid SNYK output json to html.

$ snyk-to-html ./snyk-report.json -o ./snyk-output.html

This command SHOULD have worked but in reality this command silently failed. I ran this many times, (I would note the -d flag also produced no output) and I was VERY confused for a little while as I couldn't find any issues similar to mine on silent failures.

The correct command is to pass the -i flag to specify the input file.

$ snyk-to-html -i ./snyk-report.json -o ./snyk-output.html
Vulnerability snapshot saved at ./snyk-output.html

It would be awesome to just validate the input flags or complain if they're not good.

Thanks

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