From 6ac08732f5486c6be9aa857abbd2bad0b1f49973 Mon Sep 17 00:00:00 2001 From: Him188 Date: Thu, 19 Nov 2020 08:39:57 +0800 Subject: [PATCH] Install ConfigurationKey.Parser to ConfigurationKey for AutoLoginCommand --- backend/mirai-console/src/command/BuiltInCommands.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/mirai-console/src/command/BuiltInCommands.kt b/backend/mirai-console/src/command/BuiltInCommands.kt index c54e65a08..f82c47346 100644 --- a/backend/mirai-console/src/command/BuiltInCommands.kt +++ b/backend/mirai-console/src/command/BuiltInCommands.kt @@ -224,6 +224,9 @@ public object BuiltInCommands { public object AutoLoginCommand : CompositeCommand( ConsoleCommandOwner, "autoLogin", "自动登录", description = "自动登录设置", + overrideContext = buildCommandArgumentContext { + ConfigurationKey::class with ConfigurationKey.Parser + } ), BuiltInCommandInternal { @Description("添加自动登录")