From 9527d7c0c2466268049b62c12fad0a8664c2c7cf Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 8 Mar 2021 18:51:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dcmd=E7=9A=84help=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E5=92=8Cscrinfo=E8=AF=B4=E6=98=8E=E8=AF=AD=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/app_cmd.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/parts/scenes/app_cmd.lua b/parts/scenes/app_cmd.lua index da128740..e5a28729 100644 --- a/parts/scenes/app_cmd.lua +++ b/parts/scenes/app_cmd.lua @@ -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""