mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-26 19:38:52 -06:00
refactor: share CLI options and default paths
core.paths holds the default database, platforms, emulators and bios paths, core.cli declares the options built on them (add_repo_inputs) and the --emulator/--system modes verify and generate_pack share. model.targets.target_scope answers --target for a command line, model.profiles.no_profile_for_systems the system with no emulator. tests/sources.declared_options reads the options a script declares through either form.
This commit is contained in:
1 parent
348d5b51c3
commit
cf03dcb2ef
50 files changed
+260
-405
No files matched your search
@@ -24,6 +24,7 @@ import os
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.dirname(__file__))
|
||||
from core.cli import add_repo_inputs
|
||||
from model.dumpcatalog import DEFAULT_PROVENANCE_DIR, load_provenance_snapshots
|
||||
from model.database import load_database
|
||||
from model.profiles import load_emulator_profiles
|
||||
@@ -60,7 +61,7 @@ def _print_missing(entry: dict, derived: dict[str, dict]) -> None:
|
||||
|
||||
def main() -> int:
|
||||
parser = argparse.ArgumentParser(allow_abbrev=False, description="Dump-catalog coverage report")
|
||||
parser.add_argument("--db", default="database.json", help="Database path")
|
||||
add_repo_inputs(parser, "db")
|
||||
parser.add_argument(
|
||||
"--provenance-dir",
|
||||
default=DEFAULT_PROVENANCE_DIR,
|
||||
|
||||
Reference in new issue
Block a user