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.
This commit is contained in:
1 parent
f932ef096f
commit
39a77c04cb
1 file changed
+2
-2
@@ -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)
|
||||
Reference in new issue
Block a user