Skip to content

Commit

Permalink
Force version argument to be a string (#684)
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
  • Loading branch information
prabhu authored Nov 1, 2023
1 parent 6715e21 commit db764dc
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions bin/cdxgen.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,17 @@ const args = yargs(hideBin(process.argv))
})
.option("project-version", {
description: "Dependency track project version",
default: ""
default: "",
type: "string"
})
.option("project-id", {
description:
"Dependency track project id. Either provide the id or the project name and version together"
"Dependency track project id. Either provide the id or the project name and version together",
type: "string"
})
.option("parent-project-id", {
description: "Dependency track parent project id"
description: "Dependency track parent project id",
type: "string"
})
.option("required-only", {
type: "boolean",
Expand Down Expand Up @@ -185,7 +188,8 @@ const args = yargs(hideBin(process.argv))
})
.option("spec-version", {
description: "CycloneDX Specification version to use. Defaults to 1.5",
default: 1.5
default: 1.5,
type: "number"
})
.option("filter", {
description:
Expand Down

0 comments on commit db764dc

Please sign in to comment.