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:
2121 version = "%(prog)s " + version ("custom_json_diff" )
2222 )
2323 parser .set_defaults (
24- preconfig_diff_type = "" ,
24+ preset_type = "" ,
2525 allow_new_versions = False ,
2626 report_template = "" ,
2727 exclude = [],
2828 allow_new_data = False ,
29- include = []
29+ include = [],
30+ include_empty = True ,
31+ bom_profile = None
3032 )
3133 parser .add_argument (
3234 "-i" ,
@@ -129,8 +131,8 @@ def main():
129131 preset_type = args .preset_type .lower ()
130132 if preset_type and preset_type not in ("bom" , "csaf" ):
131133 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" ):
134136 raise ValueError ("BOM profile must be either gn, gnv, or nv." )
135137 options = Options (
136138 allow_new_versions = args .allow_new_versions ,
Original file line number Diff line number Diff line change 11[project ]
22name = " custom-json-diff"
3- version = " 2.1.4 "
3+ version = " 2.1.5 "
44description = " CycloneDx BOM and Oasis CSAF diffing and comparison tool."
55authors = [
66 {
name =
" Caroline Russell" ,
email =
" [email protected] " },
You can’t perform that action at this time.
0 commit comments