refactor: drop the unused cli mode validator

This commit is contained in:
Abdessamad Derraz committed 2026-10-17 23:05:57 +02:00
1 parent 09eb4f4ef3
commit 47a8c418e4
1 file changed
-9
-9
View File
@@ -434,15 +434,6 @@ def check_file_validation(
return None
def validate_cli_modes(args, mode_attrs: list[str]) -> None:
"""Validate mutual exclusion of CLI mode arguments."""
modes = sum(1 for attr in mode_attrs if getattr(args, attr, None))
if modes == 0:
raise SystemExit(f"Specify one of: --{' --'.join(mode_attrs)}")
if modes > 1:
raise SystemExit(f"Options are mutually exclusive: --{' --'.join(mode_attrs)}")
def read_from_system_dir(file_entry: dict, standalone: bool = False) -> bool:
"""Whether the emulator reads this entry from the system directory.