Skip to content

Commit

Permalink
Merge pull request #140 from CycloneDX/default-value-fix
Browse files Browse the repository at this point in the history
Workaround for default values not being set
  • Loading branch information
coderpatros authored Jul 1, 2021
2 parents 2c98dfb + 7a0e290 commit 166f5e7
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 166f5e7

Please sign in to comment.