cmd改正print用法说明,删除shutdown命令

This commit is contained in:
MrZ626
2021-03-17 21:07:47 +08:00
parent 6230510b2e
commit b7f8162f5f

View File

@@ -117,17 +117,6 @@ do--commands.help(arg)
"Usage: rst", "Usage: rst",
}, },
}, },
shutdown={
description="(Attempt to) shutdown your machine.",
details={
"(Attempt to) shutdown your machine. Arguments to this command",
"will be passed on to the system shutdown command.",
"",
"Usage:",
"shutdown",
"shutdown [args]",
},
},
fn={ fn={
description="Simulates a Function key press.", description="Simulates a Function key press.",
details={ details={
@@ -225,7 +214,6 @@ do--commands.help(arg)
"del", "del",
"cls", "cls",
"rst", "rst",
"shutdown",
"fn", "fn",
"scrinfo", "scrinfo",
"wireframe", "wireframe",
@@ -266,11 +254,8 @@ do--commands.help(arg)
else else
log{C.R,"No command called "..arg} log{C.R,"No command called "..arg}
end end
--Else
end end
end end
function commands.shutdown(arg)os.execute("shutdown "..arg)end
function commands.error(mes)error(mes)end function commands.error(mes)error(mes)end
function commands.cls()outputBox:clear()end function commands.cls()outputBox:clear()end
function commands.rst() function commands.rst()
@@ -299,7 +284,7 @@ function commands.print(name)
log{C.R,"No file called '"..name.."'"} log{C.R,"No file called '"..name.."'"}
end end
else else
log{C.water,"Usage: del [filename]"} log{C.water,"Usage: print [filename]"}
end end
end end
function commands.url(url) function commands.url(url)