修复cmd的help问题和scrinfo说明语法

This commit is contained in:
MrZ626
2021-03-08 18:51:31 +08:00
parent c73e07ecaf
commit 9527d7c0c2

View File

@@ -161,9 +161,9 @@ do--commands.help(arg)
},
},
scrinfo={
description="Display information about game window'.",
description="Display information about the game window.",
details={
"Display information about game window'.",
"Display information about the game window.",
"",
"Usage: scrinfo",
},
@@ -249,8 +249,8 @@ do--commands.help(arg)
end
--help or help [page]
arg=tonumber(arg)
if arg and arg>=1 and arg<=maxPage then
if arg==""then arg=1 else arg=tonumber(arg)end
if arg and arg==int(arg)and arg>=1 and arg<=maxPage then
log"Use help [page] to view more commands,"
log"or help [command_name] for details of a command."
log""