mirror of
https://github.com/kuhyx/testsAndMisc-archive.git
synced 2026-07-04 12:43:15 +02:00
- C/lichess_random_engine, vocabulary_curve, misc/split, 1dvelocitysimulator, opening_learner: test suites added - CPP/miscelanious: tests added - TS/battery-status, champions_leauge_scores, two-inputs: tests added - python_pkg/fm24_searcher, wake_alarm: new packages added - Fix ruff/cppcheck/eslint/clang-format failures - Update .gitignore for C/C++ build artifacts
25 lines
521 B
Python
25 lines
521 B
Python
"""Entry point for FM24 Database Searcher.
|
|
|
|
Supports two modes:
|
|
- GUI (default): ``python -m python_pkg.fm24_searcher``
|
|
- CLI dump: ``python -m python_pkg.fm24_searcher --dump``
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import sys
|
|
|
|
from python_pkg.fm24_searcher.cli import run_dump
|
|
from python_pkg.fm24_searcher.gui import main
|
|
|
|
|
|
def _main() -> None:
|
|
"""Dispatch to GUI or CLI based on arguments."""
|
|
if "--dump" in sys.argv:
|
|
raise SystemExit(run_dump())
|
|
main()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
_main()
|