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
@@ -116,7 +116,7 @@ def identify_romset(
def main() -> int:
"""Entry point: 1 when a checked archive is not TorrentZip."""
parser = argparse.ArgumentParser(description="TorrentZip builder and checker")
parser = argparse.ArgumentParser(allow_abbrev=False, description="TorrentZip builder and checker")
parser.add_argument("--check", metavar="ZIP", help="report TorrentZip conformance")
parser.add_argument("--rebuild", metavar="ZIP", help="normalize an archive")
parser.add_argument("--output", "-o", help="output path for --rebuild")