From 39a77c04cb3ca9e0e5419bf10a9d2244c3d921b1 Mon Sep 17 00:00:00 2001 From: N0VAN0M4LY <224130499+N0VAN0M4LY@users.noreply.github.com> Date: Sat, 5 Dec 2026 17:07:17 +0800 Subject: [PATCH] fix(tools): register decrypt-clog command in wtotools cli log_commands defined decrypt-clog but the cli entry point never registered it, so the command was rejected as an invalid choice. Verified by decrypting a lab .clog through python -m wtotools.cli. --- tools/src/wtotools/cli/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/src/wtotools/cli/__init__.py b/tools/src/wtotools/cli/__init__.py index f3fe7f5..70d0f76 100644 --- a/tools/src/wtotools/cli/__init__.py +++ b/tools/src/wtotools/cli/__init__.py @@ -6,7 +6,7 @@ from __future__ import annotations import argparse -from . import exe_commands, gui_commands +from . import exe_commands, gui_commands, log_commands def main(argv: list[str] | None = None) -> int: @@ -16,7 +16,7 @@ def main(argv: list[str] | None = None) -> int: formatter_class=argparse.RawDescriptionHelpFormatter, ) commands = parser.add_subparsers(dest="command", required=True) - for group in (exe_commands, gui_commands): + for group in (exe_commands, gui_commands, log_commands): group.register(commands) args = parser.parse_args(argv) return args.handler(args)