mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-19 09:53:10 -05:00
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:
1 parent
88a3bb8953
commit
e1b6aad51b
53 files changed
+79
-33
No files matched your search
@@ -114,7 +114,7 @@ def rewrite(name: str, emulators_dir: str, findings: list[Finding]) -> int:
|
||||
|
||||
|
||||
def main() -> None:
|
||||
parser = argparse.ArgumentParser(description=__doc__.splitlines()[0])
|
||||
parser = argparse.ArgumentParser(allow_abbrev=False, description=__doc__.splitlines()[0])
|
||||
parser.add_argument("emulators", nargs="+")
|
||||
parser.add_argument("--emulators-dir", default="emulators")
|
||||
parser.add_argument("--cache-dir", default=upstream.CACHE_DIR)
|
||||
|
||||
Reference in new issue
Block a user