checkov directory switch not repeatable
Created by: snackwagon
Describe the bug When running checkov -h, the directory switch claims it is repeatable but when you repeat it, only the last directory listed is scanned
-d DIRECTORY, --directory DIRECTORY
Terraform root directory (can not be used together with --file). Can be repeated
To Reproduce Steps to reproduce the behavior:
- Create two directories (directory1, directory2) containing valid terraform files
- Run cli command
checkov -d ./directory1 -d ./directory2
- Only directory2 is scanned
Expected behavior Both directory1 and directory2 are scanned
Desktop (please complete the following information):
- Checkov Version: 1.0.180
Additional context I would actually prefer a recursive switch, using the -d directive multiple times is a workaround