cmd改正print用法说明,删除shutdown命令
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user