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.
24 lines
796 B
Python
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)
|