Skip to content

Commit 12d3e20

Browse files
committed
prefer -q when passed
Signed-off-by: Jeffrey Martin <jemartin@nvidia.com>
1 parent 0d2a21d commit 12d3e20

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

garak/analyze/tbsa.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
"""
88
tier-biased security aggregate
9-
derive a single lossy score from a garak run
9+
derive a single lossy score from a garak run
1010
"""
1111

1212
import argparse
@@ -276,7 +276,7 @@ def main(argv=None) -> None:
276276
print(f"📜 JSON output to: {args.json_output}")
277277

278278
digest = None
279-
if args.verbose:
279+
if args.verbose and not args.quiet:
280280
print(f"processing> {report_path}")
281281

282282
with open(args.report_path, "r", encoding="utf-8") as report_file:
@@ -295,7 +295,7 @@ def main(argv=None) -> None:
295295
print(f"❄️ Digest run_uuid is {digest['meta']['run_uuid']}")
296296

297297
tbsa, pdver_hash, pd_count = digest_to_tbsa(
298-
digest, verbose=args.verbose, quiet=args.quiet
298+
digest, verbose=(args.verbose and not args.quiet), quiet=args.quiet
299299
)
300300

301301
if not args.quiet:

0 commit comments

Comments
 (0)