From deda95cec3ac68aeb44e0f132af8a5cbd2e542e9 Mon Sep 17 00:00:00 2001 From: Wonjae Park Date: Fri, 11 Nov 2022 14:28:44 +0900 Subject: [PATCH] Block -m option for opossum,yaml and csv --- src/fosslight_source/cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fosslight_source/cli.py b/src/fosslight_source/cli.py index df23505..7d756dd 100755 --- a/src/fosslight_source/cli.py +++ b/src/fosslight_source/cli.py @@ -91,6 +91,9 @@ def main(): _start_time = datetime.now().strftime('%y%m%d_%H%M') success, msg, output_path, output_file, output_extension = check_output_format(output_file_name, format) + if output_extension != '.xlsx' and print_matched_text: + logger.warning("-m option is only available for excel.") + print_matched_text = False if not success: logger.error(f"Format error. {msg}") sys.exit(1)