Skip to content

Commit f160c4b

Browse files
committed
revisit option descriptions
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 1ebac1d commit f160c4b

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,21 @@ $ yarn CycloneDX make-sbom
5757
5858
━━━ Options ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
5959
60-
--spec-version #0 Which version of CycloneDX to use. (choices: "1.2", "1.3", "1.4", "1.5", default: "1.5")
61-
--output-format #0 Which output format to use. (choices: "JSON", "XML", default: "JSON")
62-
--output-file #0 Path to the output file. Set to "-" to write to STDOUT (default: write to STDOUT)
63-
--production,--prod Exclude development dependencies. (default: true if the NODE_ENV environment variable is set to "production", otherwise false)
64-
--mc-type #0 Type of the main component. (choices: "application", "framework", "library", "container", "platform", "device-driver", default: "application")
65-
--licenses Include license information for components in generated SBOM. License information will always be absent for components that don't specify licenses unambiguously.
66-
--reproducible Whether to go the extra mile and make the output reproducible. This might result in loss of time- and random-based values.
60+
--spec-version #0 Which version of CycloneDX to use.
61+
(choices: "1.2", "1.3", "1.4", "1.5", default: "1.5")
62+
--output-format #0 Which output format to use.
63+
(choices: "JSON", "XML", default: "JSON")
64+
--output-file #0 Path to the output file.
65+
Set to "-" to write to STDOUT.
66+
(default: write to STDOUT)
67+
--production,--prod Exclude development dependencies.
68+
(default: true if the NODE_ENV environment variable is set to "production", otherwise false)
69+
--mc-type #0 Type of the main component.
70+
(choices: "application", "framework", "library", "container", "platform", "device-driver", default: "application")
71+
--licenses Include license information for components in generated SBOM.
72+
License information will always be absent for components that don't specify licenses unambiguously.
73+
--reproducible Whether to go the extra mile and make the output reproducible.
74+
This might result in loss of time- and random-based values.
6775
6876
━━━ Details ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
6977

sources/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class SBOMCommand extends BaseCommand {
4343
details: 'Recursively scan workspace dependencies and emits them as Software-Bill-of-Materials(SBOM) in CycloneDX format.',
4444
});
4545

46+
// @TODO limit to all supported versions - not hardcoded
4647
specVersion = Option.String("--spec-version", {
4748
description: 'Which version of CycloneDX to use.\n(choices: "1.2", "1.3", "1.4", "1.5", default: "1.5")',
4849
});
@@ -52,7 +53,7 @@ class SBOMCommand extends BaseCommand {
5253
});
5354

5455
outputFile = Option.String(`--output-file`, {
55-
description: `Path to the output file.\nSet to "-" to write to STDOUT\n(default: write to STDOUT)`,
56+
description: `Path to the output file.\nSet to "-" to write to STDOUT.\n(default: write to STDOUT)`,
5657
});
5758

5859
/* mimic option from yarn.
@@ -63,6 +64,7 @@ class SBOMCommand extends BaseCommand {
6364
description: 'Exclude development dependencies.\n(default: true if the NODE_ENV environment variable is set to "production", otherwise false)',
6465
});
6566

67+
// @TODO limit to hardcoded: "application", "firmware", "library"
6668
componentType = Option.String("--mc-type", {
6769
description: 'Type of the main component.\n(choices: "application", "framework", "library", "container", "platform", "device-driver", default: "application")',
6870
});

0 commit comments

Comments
 (0)