Skip to content

Commit c92501a

Browse files
authored
Merge pull request #166 from to-curiosity/patch-1
added --use-blintdb to the sbom_parser
2 parents d1ab615 + 7858ff7 commit c92501a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

blint/cli.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,13 @@ def build_parser():
178178
nargs="+",
179179
help="Directories containing pre-build and build BOMs. Use to improve the precision.",
180180
)
181+
sbom_parser.add_argument(
182+
"--use-blintdb",
183+
action="store_true",
184+
default=os.path.exists(BLINTDB_LOC),
185+
dest="use_blintdb",
186+
help=f"Use blintdb for symbol resolution. Defaults to true if the file exists at {BLINTDB_LOC}. Use environment variables: BLINTDB_IMAGE_URL, BLINTDB_HOME, and BLINTDB_REFRESH for customization.",
187+
)
181188
db_parser = subparsers.add_parser(
182189
"db", help="Command to manage the pre-compiled database."
183190
)

0 commit comments

Comments
 (0)