mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-04-13 20:32:32 -05:00
refactor: fix code review findings across all scripts
Critical: stream large file downloads (OOM fix), fix basename match in auto_fetch, include hashes in pack grouping fingerprint, handle not_in_zip status in verify, fix escaped quotes in batocera parser. Important: deduplicate shared group includes, catch coreinfo network errors, fix NODEDUP path component match, fix CI word splitting on spaces, replace bare except Exception in 3 files. Minor: argparse in list_platforms, specific exceptions in download.py.
This commit is contained in:
@@ -13,6 +13,7 @@ Usage:
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
@@ -58,9 +59,11 @@ def list_platforms(include_archived: bool = False) -> list[str]:
|
||||
|
||||
|
||||
def main():
|
||||
include_all = "--all" in sys.argv
|
||||
parser = argparse.ArgumentParser(description="List available platforms")
|
||||
parser.add_argument("--all", action="store_true", help="Include archived platforms")
|
||||
args = parser.parse_args()
|
||||
|
||||
platforms = list_platforms(include_archived=include_all)
|
||||
platforms = list_platforms(include_archived=args.all)
|
||||
|
||||
if not platforms:
|
||||
print("No platform configs found", file=sys.stderr)
|
||||
|
||||
Reference in New Issue
Block a user