Skip to content

Commit

Permalink
Update entrypoint.py with quiet metrics output
Browse files Browse the repository at this point in the history
  • Loading branch information
jteijema authored Feb 3, 2025
1 parent 993029b commit 75d1743
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion asreviewcontrib/insights/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ def execute(self, argv):
default=None,
help="Save the metrics and results to a JSON file.",
)
parser.add_argument(
"--quiet",
action="store_true",
help="Suppress printed output of metrics."
)
args = parser.parse_args(argv)

output_dict = {}
Expand All @@ -206,7 +211,8 @@ def execute(self, argv):
version=self.version,
)
output_dict[asreview_file] = stats
print_metrics(stats)
if not args.quiet:
print_metrics(stats)

if args.output:
if len(args.asreview_files) == 1:
Expand Down

0 comments on commit 75d1743

Please sign in to comment.