Skip to content

Commit 9d2850e

Browse files
Block -m option for opossum,yaml and csv
1 parent 308753b commit 9d2850e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/fosslight_source/cli.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ def main():
9191

9292
_start_time = datetime.now().strftime('%y%m%d_%H%M')
9393
success, msg, output_path, output_file, output_extension = check_output_format(output_file_name, format)
94+
if output_extension in ['.csv', '.json', '.yaml'] and print_matched_text:
95+
logger.warning("-m option is only available for excel.")
96+
print_matched_text = False
9497
if not success:
9598
logger.error(f"Format error. {msg}")
9699
sys.exit(1)

0 commit comments

Comments
 (0)