Skip to content

Commit

Permalink
✏️ Change docs for cyclonedx 1.5 version update (#341)
Browse files Browse the repository at this point in the history
Changes
- Updates documentation reference to include cyclonedx v1.5, from
#337
- Changes reference to default version, from 1.4 to 1.5

Signed-off-by: leec94 <leec94@bu.edu>
  • Loading branch information
leec94 authored Aug 11, 2024
1 parent 01fb950 commit 86f7a19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Options:
--output-file <output-file> Output BOM filename, will write to stdout if no value provided.
--input-format <autodetect|csv|json|protobuf|spdxjson|xml> Specify input file format.
--output-format <autodetect|csv|json|protobuf|spdxjson|xml> Specify output file format.
--output-version <v1_0|v1_1|v1_2|v1_3|v1_4> Specify output BOM specification version. (ignored for CSV and SPDX formats)
--output-version <v1_0|v1_1|v1_2|v1_3|v1_4|v1_5> Specify output BOM specification version. (ignored for CSV and SPDX formats)
```

### Examples
Expand Down Expand Up @@ -263,7 +263,7 @@ Usage:
Options:
--input-file <input-file> Input BOM filename, will read from stdin if no value provided.
--input-format <autodetect|json|xml> Specify input file format.
--input-version <v1_0|v1_1|v1_2|v1_3|v1_4> Specify input file specification version (defaults to v1.4)
--input-version <v1_0|v1_1|v1_2|v1_3|v1_4|v1_5> Specify input file specification version (defaults to v1.5)
--fail-on-errors Fail on validation errors (return a non-zero exit code)
```

Expand Down
2 changes: 1 addition & 1 deletion src/cyclonedx/Commands/ValidateCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static void Configure(RootCommand rootCommand)
var subCommand = new System.CommandLine.Command("validate", "Validate a BOM");
subCommand.Add(new Option<string>("--input-file", "Input BOM filename, will read from stdin if no value provided."));
subCommand.Add(new Option<ValidationBomFormat>("--input-format", "Specify input file format."));
subCommand.Add(new Option<SpecificationVersion?>("--input-version", "Specify input file specification version (defaults to v1.4)"));
subCommand.Add(new Option<SpecificationVersion?>("--input-version", "Specify input file specification version (defaults to v1.5)"));
subCommand.Add(new Option<bool>("--fail-on-errors", "Fail on validation errors (return a non-zero exit code)"));
subCommand.Handler = CommandHandler.Create<ValidateCommandOptions>(Validate);
rootCommand.Add(subCommand);
Expand Down

0 comments on commit 86f7a19

Please sign in to comment.