fix: refuse abbreviated flags in every script

argparse completed a prefix into the only flag starting with it:
slots.py --emulator read profiles from a directory named after the
emulator and reported nothing, and pipeline.py --all built every pack
variant. Every parser now refuses an abbreviation.
This commit is contained in:
Abdessamad Derraz committed 2026-10-18 05:30:58 +02:00
1 parent 88a3bb8953
commit e1b6aad51b
53 files changed
+79 -33

No files matched your search

+1 -1
View File
@@ -415,7 +415,7 @@ def generate_issue_body(missing: list[dict], platform: str) -> str:
def main() -> None:
parser = argparse.ArgumentParser(description="Auto-fetch missing BIOS files")
parser = argparse.ArgumentParser(allow_abbrev=False, description="Auto-fetch missing BIOS files")
parser.add_argument("--platform", "-p", help="Platform to check")
parser.add_argument("--all", action="store_true", help="Check all platforms")
parser.add_argument(