fix: accept platform names as the site prints them

This commit is contained in:
Abdessamad Derraz committed 2026-10-18 08:49:41 +02:00
1 parent 02cacb1b87
commit 92fb885341
11 files changed
+54 -10

No files matched your search

+2 -1
View File
@@ -29,6 +29,7 @@ from pathlib import Path
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from common import (
platform_arg,
require_directory,
list_registered_platforms,
load_database,
@@ -418,7 +419,7 @@ def generate_issue_body(missing: list[dict], platform: str) -> str:
def main() -> None:
parser = argparse.ArgumentParser(allow_abbrev=False, description="Auto-fetch missing BIOS files")
parser.add_argument("--platform", "-p", help="Platform to check")
parser.add_argument("--platform", "-p", type=platform_arg, help="Platform to check")
parser.add_argument("--all", action="store_true", help="Check all platforms")
parser.add_argument(
"--dry-run", action="store_true", help="Don't download, just report"