diff --git a/src/fosslight_source/cli.py b/src/fosslight_source/cli.py index 2ee2aff3..b54ea90e 100755 --- a/src/fosslight_source/cli.py +++ b/src/fosslight_source/cli.py @@ -94,7 +94,7 @@ 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: + if output_extension != '.xlsx' and output_extension != "" and print_matched_text: logger.warning("-m option is only available for excel.") print_matched_text = False if not success: