From 75d1743149a0073cf91e490741dc5121822d11bc Mon Sep 17 00:00:00 2001 From: Jelle Teijema Date: Mon, 3 Feb 2025 11:53:54 +0100 Subject: [PATCH] Update entrypoint.py with quiet metrics output --- asreviewcontrib/insights/entrypoint.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/asreviewcontrib/insights/entrypoint.py b/asreviewcontrib/insights/entrypoint.py index 8c6b051..c56d2d7 100644 --- a/asreviewcontrib/insights/entrypoint.py +++ b/asreviewcontrib/insights/entrypoint.py @@ -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 = {} @@ -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: