stevespringett / nist-data-mirror

A simple Java command-line utility to mirror the CVE JSON data from NIST.
Apache License 2.0
206 stars 93 forks source link

Refactored error message when the output dir is not specified #74

Open tudormi opened 3 years ago

tudormi commented 3 years ago

Recently updated to version 1.5.0 and the download did not happen anymore. I am using the repo in a pipeline which has other steps after the java -jar nist-data-mirror.jar outputDir json and it was silently failing with the message Usage: java NistDataMirror outputDir" which does not look like an actual error message. In the meanwhile I solved the problem by removing the json parameter as I also looked here into the source code and saw what the message actually meant