Skip to content

exit code on argument error #1887

@username-is-already-taken2

Description

Currently, if there’s a configuration error with an argument, the program will end with exit code 0.

In my case, I had an error in the path to an SSH key, and the tool couldn't complete its scan. As I was running it in a CI, it was quietly failing and appearing to have passed compliance.

For reference, I also had the argument —risk-threshold 0 because I wanted to error if my template didn’t meet policy.

I believe the product should not exit cleanly if there’s an error with the arguments.

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions