build(repo): make source comments and build tools self-contained

This commit is contained in:
N0VAN0M4LY committed 2026-11-29 08:46:08 +08:00
1 parent 5b5c59ab08
commit 44190e4544
106 files changed
+152 -183

No files matched your search

+7 -8
View File
@@ -1,10 +1,6 @@
"""Command line entry point for the development-side tools.
"""Build and verify local game copies.
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.
Run `wtotools <command> --help` for command-specific options.
"""
from __future__ import annotations
@@ -14,8 +10,11 @@ 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)
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)