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 4a2f1c120c
commit 5df305e2f9
106 files changed
+152 -183

No files matched your search

-1
View File
@@ -12,7 +12,6 @@ dependencies = [
"capstone>=5.0",
"keystone-engine>=0.9.2",
"zstandard>=0.22",
"procmon-parser>=0.4",
]
[project.scripts]
+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)