Files
WT-Offline/tools/src/wtotools/cli/__init__.py
T
N0VAN0M4LY 6a189513b0 Snapshot unreviewed LocalMP battle work as rework baseline
Records the uncommitted battle-session work exactly as it was left
(local service matchmaking, settlement, chat, native LocalMP hooks,
battle gui/exe patches) so the following review and rework commits
show every correction as a diff against this state.

This commit is not reviewed and is known to be incomplete: in-game
testing reported wrong settlement rewards, single-country teams,
missing random/fixed supplement slots, misattributed hit messages and
other regressions. Do not merge this branch before the rework lands.
2026-11-28 03:15:47 +08:00

24 lines
796 B
Python

"""Command line entry point for the development-side tools.
Each group of commands lives in its own module and registers itself here:
- exe_commands: check-patches, patch-exe
- gui_commands: check-gui
Run `wtotools <command> --help` for the arguments of one command.
"""
from __future__ import annotations
import argparse
from . import exe_commands, gui_commands
def main(argv: list[str] | None = None) -> int:
parser = argparse.ArgumentParser(prog="wtotools", description=__doc__,
formatter_class=argparse.RawDescriptionHelpFormatter)
commands = parser.add_subparsers(dest="command", required=True)
for group in (exe_commands, gui_commands):
group.register(commands)
args = parser.parse_args(argv)
return args.handler(args)