mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-18 09:23:26 -05:00
refactor: drop the unused cli mode validator
This commit is contained in:
1 parent
09eb4f4ef3
commit
47a8c418e4
1 file changed
-9
@@ -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.
|
||||
|
||||
|
||||
Reference in new issue
Block a user