Skip to content

Commit ae06c2f

Browse files
authored
Merge pull request #98 from fosslight/mode
Allow more than two modes to be entered
2 parents 29c039f + 78dee51 commit ae06c2f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/fosslight_scanner/fosslight_scanner.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,7 @@ def run_main(mode_list, path_arg, dep_arguments, output_file_or_dir, file_format
327327
if mode_not_supported:
328328
logger.error(f"[Error]: An unsupported mode was entered.:{mode_not_supported}")
329329
sys.exit(1)
330-
if len(mode_list) > 2:
331-
logger.error("[Error]: Enter no more than two modes.")
332-
sys.exit(1)
333-
if ("compare" in mode_list) and (len(mode_list) > 1) and (mode_list != ["compare", "compare"]):
330+
if "compare" in mode_list and len(mode_list) > 1:
334331
logger.error("[Error]: Compare mode cannot be run together with other modes.")
335332
sys.exit(1)
336333

0 commit comments

Comments
 (0)