Invalid spec/format values have usability issues
surendrapathak opened this issue · comments
The error message is always "invalid spec." It should be called out specifically.
Error messages:
- spec options are spdx or cdx
- format options are xml , json or tv (for tag-value)
Example of better error handling below -
- Shows the error string
- Prints help message
sbomqs score ~/Downloads/09-07-2022.csv --reportFormat basic2
Error: report format options are basic or detailed
Usage:
sbomqs score [flags]
Flags:
--category string scoring category
--dirpath string sbom dir path
--filepath string sbom file path
-h, --help help for score
--reportFormat string reporting format basic/detailed/json