File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,14 @@ def build_args() -> argparse.Namespace:
21
21
version = "%(prog)s " + version ("custom_json_diff" )
22
22
)
23
23
parser .set_defaults (
24
- preconfig_diff_type = "" ,
24
+ preset_type = "" ,
25
25
allow_new_versions = False ,
26
26
report_template = "" ,
27
27
exclude = [],
28
28
allow_new_data = False ,
29
- include = []
29
+ include = [],
30
+ include_empty = True ,
31
+ bom_profile = None
30
32
)
31
33
parser .add_argument (
32
34
"-i" ,
@@ -129,8 +131,8 @@ def main():
129
131
preset_type = args .preset_type .lower ()
130
132
if preset_type and preset_type not in ("bom" , "csaf" ):
131
133
raise ValueError ("Preconfigured type must be either bom or csaf." )
132
- if args . bom_profile :
133
- if args .bom_profile not in ("gn" , "gnv" , "nv" ):
134
+ if preset_type == "bom" :
135
+ if args .bom_profile and args . bom_profile not in ("gn" , "gnv" , "nv" ):
134
136
raise ValueError ("BOM profile must be either gn, gnv, or nv." )
135
137
options = Options (
136
138
allow_new_versions = args .allow_new_versions ,
Original file line number Diff line number Diff line change 1
1
[project ]
2
2
name = " custom-json-diff"
3
- version = " 2.1.4 "
3
+ version = " 2.1.5 "
4
4
description = " CycloneDx BOM and Oasis CSAF diffing and comparison tool."
5
5
authors = [
6
6
{
name =
" Caroline Russell" ,
email =
" [email protected] " },
You can’t perform that action at this time.
0 commit comments