mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-18 09:23:26 -05:00
fix: name the flag one-per-slot conflicts with
--platform --system --one-per-slot was refused with a message asking for --platform, which the command carried. The refusal now names --system or --emulator, and every refusal in the mode matrix is checked never to ask for a flag it was given.
This commit is contained in:
1 parent
9ba63e6a54
commit
78902ccc6a
2 files changed
+20
-2
No files matched your search
@@ -2230,8 +2230,10 @@ def _validate_args(args: argparse.Namespace, parser: argparse.ArgumentParser) ->
|
||||
parser.error("--one-per-slot and --from-md5 are mutually exclusive")
|
||||
if args.manifest:
|
||||
parser.error("--one-per-slot is incompatible with --manifest")
|
||||
if has_emulator or has_system:
|
||||
parser.error("--one-per-slot requires --platform or --all")
|
||||
if has_emulator:
|
||||
parser.error("--one-per-slot is incompatible with --emulator")
|
||||
if has_system:
|
||||
parser.error("--one-per-slot is incompatible with --system")
|
||||
|
||||
|
||||
def _write_manifest_if_changed(path: str, manifest: dict) -> None:
|
||||
|
||||
Reference in new issue
Block a user