Skip to content

Commit

Permalink
Workaround for default values not being set
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Dwyer <patrick.dwyer@owasp.org>
  • Loading branch information
coderpatros committed Jul 1, 2021
1 parent 2c98dfb commit 7a0e290
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/cyclonedx-bom
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ function commaSeparatedList(value, previous) {
let filePath = commander.args[0] || '.';
let includeSerialNumber = commander.serialNumber;
let includeLicenseText = commander.includeLicenseText;
let output = commander.output;
let componentType = commander.type;
let output = commander.output || "bom.xml";
let componentType = commander.type || "library";

if (Component.supportedComponentTypes().indexOf(componentType) === -1) {
throw "Unsupported component type. Supported types are " + Component.supportedComponentTypes().toString();
Expand Down

0 comments on commit 7a0e290

Please sign in to comment.