完善控制台内部分命令的描述文本
This commit is contained in:
@@ -35,11 +35,11 @@ local commands={}do
|
|||||||
if commands[arg]then
|
if commands[arg]then
|
||||||
if commands[arg].description then
|
if commands[arg].description then
|
||||||
log{C.H,("%s"):format(commands[arg].description)}
|
log{C.H,("%s"):format(commands[arg].description)}
|
||||||
if commands[arg].details then
|
end
|
||||||
for _,v in ipairs(commands[arg].details)do log(v)end
|
if commands[arg].details then
|
||||||
else
|
for _,v in ipairs(commands[arg].details)do log(v)end
|
||||||
log{C.Y,("No details for command '%s'"):format(arg)}
|
else
|
||||||
end
|
log{C.Y,("No details for command '%s'"):format(arg)}
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
log{C.Y,("No command called '%s'"):format(arg)}
|
log{C.Y,("No command called '%s'"):format(arg)}
|
||||||
@@ -58,6 +58,7 @@ local commands={}do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
description="Display help messages",
|
||||||
details={
|
details={
|
||||||
"Display help messages.",
|
"Display help messages.",
|
||||||
"",
|
"",
|
||||||
@@ -80,8 +81,9 @@ local commands={}do
|
|||||||
}
|
}
|
||||||
commands.exit={
|
commands.exit={
|
||||||
code=backScene,
|
code=backScene,
|
||||||
|
description="Return to the last menu",
|
||||||
details={
|
details={
|
||||||
"Return to the previous menu.",
|
"Return to the last menu.",
|
||||||
"",
|
"",
|
||||||
"Aliases: exit quit",
|
"Aliases: exit quit",
|
||||||
"",
|
"",
|
||||||
@@ -413,13 +415,14 @@ local commands={}do
|
|||||||
else
|
else
|
||||||
log("No BGM called "..bgm)
|
log("No BGM called "..bgm)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
log("Already playing: "..bgm)
|
log("Already playing: "..bgm)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
log{C.A,"Usage: playbgm [bgmName]"}
|
log{C.A,"Usage: playbgm [bgmName]"}
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
description="Play a BGM",
|
||||||
details={
|
details={
|
||||||
"Play a BGM.",
|
"Play a BGM.",
|
||||||
"",
|
"",
|
||||||
@@ -430,6 +433,7 @@ local commands={}do
|
|||||||
code=function()
|
code=function()
|
||||||
BGM.stop()
|
BGM.stop()
|
||||||
end,
|
end,
|
||||||
|
description="Stop the BGM",
|
||||||
details={
|
details={
|
||||||
"Stop the BGM.",
|
"Stop the BGM.",
|
||||||
"",
|
"",
|
||||||
@@ -735,6 +739,7 @@ local commands={}do
|
|||||||
log{C.A,"Example: switchhost 127.0.0.1 26000 /sock"}
|
log{C.A,"Example: switchhost 127.0.0.1 26000 /sock"}
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
description="Switch to appother host",
|
||||||
details={
|
details={
|
||||||
"Disconnect all connections and switch to another host",
|
"Disconnect all connections and switch to another host",
|
||||||
"",
|
"",
|
||||||
|
|||||||
Reference in New Issue
Block a user