mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-27 17:00:14 +08:00
Rename printlnHelpMessage to printHelpMessage
This commit is contained in:
parent
a666dc5448
commit
081b679134
@ -54,7 +54,7 @@ object MiraiConsolePureLoader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ConsolePureExperimentalAPI
|
@ConsolePureExperimentalAPI
|
||||||
fun printlnHelpMessage() {
|
fun printHelpMessage() {
|
||||||
val help = listOf(
|
val help = listOf(
|
||||||
"" to "Mirai-Console[Pure FrontEnd] v" + kotlin.runCatching {
|
"" to "Mirai-Console[Pure FrontEnd] v" + kotlin.runCatching {
|
||||||
net.mamoe.mirai.console.internal.MiraiConsoleBuildConstants.version
|
net.mamoe.mirai.console.internal.MiraiConsoleBuildConstants.version
|
||||||
@ -67,7 +67,7 @@ object MiraiConsolePureLoader {
|
|||||||
"[NoConsole] [Windows Only] 不进行ansi console初始化工作",
|
"[NoConsole] [Windows Only] 不进行ansi console初始化工作",
|
||||||
"--no-ansi" to "[NoConsole] 禁用 ansi",
|
"--no-ansi" to "[NoConsole] 禁用 ansi",
|
||||||
"--safe-reading" to
|
"--safe-reading" to
|
||||||
"[NoConsole] 如果启动此选项, console在获取用户输入的时候会获得一个安全的空字符串\n" +
|
"[NoConsole] 如果启动此选项, console在获取用户输入的时候会获得一个安全的替换符\n" +
|
||||||
" 如果不启动, 将会直接 error",
|
" 如果不启动, 将会直接 error",
|
||||||
"--reading-replacement <string>" to
|
"--reading-replacement <string>" to
|
||||||
"[NoConsole] Console尝试读取命令的替换符, 默认是空字符串\n" +
|
"[NoConsole] Console尝试读取命令的替换符, 默认是空字符串\n" +
|
||||||
@ -102,7 +102,7 @@ object MiraiConsolePureLoader {
|
|||||||
while (iterator.hasNext()) {
|
while (iterator.hasNext()) {
|
||||||
when (val option = iterator.next()) {
|
when (val option = iterator.next()) {
|
||||||
"--help" -> {
|
"--help" -> {
|
||||||
printlnHelpMessage()
|
printHelpMessage()
|
||||||
if (exitProcess) exitProcess(0)
|
if (exitProcess) exitProcess(0)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -133,7 +133,7 @@ object MiraiConsolePureLoader {
|
|||||||
}
|
}
|
||||||
else -> {
|
else -> {
|
||||||
println("Unknown option `$option`")
|
println("Unknown option `$option`")
|
||||||
printlnHelpMessage()
|
printHelpMessage()
|
||||||
if (exitProcess)
|
if (exitProcess)
|
||||||
exitProcess(1)
|
exitProcess(1)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user